Fix a memory leak in QGLWidget::renderText

Task-number: QTBUG-32792
Change-Id: Ie9293a1919c1bdf13a5c357a8d2eac303a83d4d4
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
bb10
Laszlo Agocs 2013-09-17 10:13:29 +02:00 committed by The Qt Project
parent f89f099c55
commit 31db0aec22
1 changed files with 2 additions and 0 deletions

View File

@ -85,6 +85,8 @@ QGLTextureGlyphCache::~QGLTextureGlyphCache()
qDebug(" -> ~QGLTextureGlyphCache() %p.", this);
#endif
delete m_blitProgram;
if (m_textureResource)
m_textureResource->free();
}
void QGLTextureGlyphCache::createTextureData(int width, int height)