diff options
author | Liang Jian <jianliang79@gmail.com> | 2014-05-28 12:48:56 +0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-05-28 16:23:04 +0200 |
commit | b5cab0515bf316d60ec6dca25b699872d4daeb45 (patch) | |
tree | 615e99da4afd57d290c9abc9a0eb2ba45c488183 /src/quick/scenegraph/qsgdefaultglyphnode_p.cpp | |
parent | 9bdd35b4efc41b687f151882630a3217e83eb710 (diff) |
Fix QSGPlainTexture object leak
Delete m_texture in the destructor of QSGTextMaskMaterial class
Change-Id: I0f3c59d2c5f094dcbc02eafa6ed782d16315eb44
Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
Diffstat (limited to 'src/quick/scenegraph/qsgdefaultglyphnode_p.cpp')
-rw-r--r-- | src/quick/scenegraph/qsgdefaultglyphnode_p.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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) |