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)