diff options
author | Martin Jones <martin.jones@nokia.com> | 2009-12-03 03:49:50 (GMT) |
---|---|---|
committer | Martin Jones <martin.jones@nokia.com> | 2009-12-03 03:49:50 (GMT) |
commit | 1dd1886390f56810f3fffbc66e823dca9132a89c (patch) | |
tree | 2bfda901ae11f7d48e7cc343b524ae0c8eb8c93a /src | |
parent | 4a68ca535074625d8ec20435e21fa658652e7680 (diff) | |
download | Qt-1dd1886390f56810f3fffbc66e823dca9132a89c.zip Qt-1dd1886390f56810f3fffbc66e823dca9132a89c.tar.gz Qt-1dd1886390f56810f3fffbc66e823dca9132a89c.tar.bz2 |
Plug leak.
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicstext.cpp | 7 | ||||
-rw-r--r-- | src/declarative/graphicsitems/qmlgraphicstext_p_p.h | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/src/declarative/graphicsitems/qmlgraphicstext.cpp b/src/declarative/graphicsitems/qmlgraphicstext.cpp index c34fbd8..650d844 100644 --- a/src/declarative/graphicsitems/qmlgraphicstext.cpp +++ b/src/declarative/graphicsitems/qmlgraphicstext.cpp @@ -116,6 +116,13 @@ QmlGraphicsText::~QmlGraphicsText() { } + +QmlGraphicsTextPrivate::~QmlGraphicsTextPrivate() +{ + delete control; + delete doc; +} + /*! \qmlproperty string Text::font.family \qmlproperty bool Text::font.bold diff --git a/src/declarative/graphicsitems/qmlgraphicstext_p_p.h b/src/declarative/graphicsitems/qmlgraphicstext_p_p.h index 7017a86..8a4c057 100644 --- a/src/declarative/graphicsitems/qmlgraphicstext_p_p.h +++ b/src/declarative/graphicsitems/qmlgraphicstext_p_p.h @@ -76,6 +76,8 @@ public: { } + ~QmlGraphicsTextPrivate(); + void updateSize(); void checkImgCache(); |