summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@digia.com>2013-09-17 10:13:29 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-20 12:05:45 +0200
commit31db0aec22e083f038089052c34fc49c6b07c5f5 (patch)
tree9197d3eeec9adfc6b9710cab7d408fd1674235f8 /src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp
parentf89f099c55576992b39a8021aace64ff32747624 (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/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp')
-rw-r--r--src/opengl/gl2paintengineex/qtextureglyphcache_gl.cpp2
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)