Do not delete m_blitProgram more than once
authorJiang Jiang <jiang.jiang@nokia.com>
Thu, 5 Jul 2012 09:20:40 +0000 (11:20 +0200)
committerQt by Nokia <qt-info@nokia.com>
Thu, 5 Jul 2012 11:13:58 +0000 (13:13 +0200)
commit87fbe79af2ecde090880d145a1ea9d66418ac734
tree6106c80fc7755c5f772c3560fc5b554e12b5d3a1
parent400813f58599efff4dfea8de7eae7e598873bab1
Do not delete m_blitProgram more than once

When m_blitProgram is created the constructor will add it to
QOpenGLContext as a child of that QObject, so it will be deleted
when that QOpenGLContext is deleted as QObject will delete its
children in destructor. Delete it here will cause crash in
thread termination.

Change-Id: If9d3287d159cc3276b6a840a584a1b212b9c9fd0
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com>
src/gui/opengl/qopengltextureglyphcache.cpp