summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-12-03 03:49:50 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-12-03 03:49:50 (GMT)
commit1dd1886390f56810f3fffbc66e823dca9132a89c (patch)
tree2bfda901ae11f7d48e7cc343b524ae0c8eb8c93a /src
parent4a68ca535074625d8ec20435e21fa658652e7680 (diff)
downloadQt-1dd1886390f56810f3fffbc66e823dca9132a89c.zip
Qt-1dd1886390f56810f3fffbc66e823dca9132a89c.tar.gz
Qt-1dd1886390f56810f3fffbc66e823dca9132a89c.tar.bz2
Plug leak.
Diffstat (limited to 'src')
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstext.cpp7
-rw-r--r--src/declarative/graphicsitems/qmlgraphicstext_p_p.h2
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();