From b5cab0515bf316d60ec6dca25b699872d4daeb45 Mon Sep 17 00:00:00 2001 From: Liang Jian Date: Wed, 28 May 2014 12:48:56 +0800 Subject: Fix QSGPlainTexture object leak Delete m_texture in the destructor of QSGTextMaskMaterial class Change-Id: I0f3c59d2c5f094dcbc02eafa6ed782d16315eb44 Reviewed-by: Gunnar Sletta --- src/quick/scenegraph/qsgdefaultglyphnode_p.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp index cd462f2fb8..86befa0b3b 100644 --- a/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp +++ b/src/quick/scenegraph/qsgdefaultglyphnode_p.cpp @@ -348,6 +348,7 @@ QSGTextMaskMaterial::QSGTextMaskMaterial(const QRawFont &font, QFontEngine::Glyp QSGTextMaskMaterial::~QSGTextMaskMaterial() { + delete m_texture; } void QSGTextMaskMaterial::init(QFontEngine::GlyphFormat glyphFormat) -- cgit v1.2.3