diff options
author | Laszlo Agocs <laszlo.agocs@digia.com> | 2013-09-17 10:13:29 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-20 12:05:45 +0200 |
commit | 31db0aec22e083f038089052c34fc49c6b07c5f5 (patch) | |
tree | 9197d3eeec9adfc6b9710cab7d408fd1674235f8 /src | |
parent | f89f099c55576992b39a8021aace64ff32747624 (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp index 8e397295d1..d96ab36e2b 100644 --- a/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp +++ b/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp @@ -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) |