summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2010-03-24 06:34:01 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2010-03-24 06:34:01 (GMT)
commit87de0a1af772189f0c2a9aeedb98d806b6a869c1 (patch)
tree00d7b754fb376b86b48144f2421f17e384dde58f
parent17c88fb432574e876e3d72c17d5453dccc351e9c (diff)
downloadQt-87de0a1af772189f0c2a9aeedb98d806b6a869c1.zip
Qt-87de0a1af772189f0c2a9aeedb98d806b6a869c1.tar.gz
Qt-87de0a1af772189f0c2a9aeedb98d806b6a869c1.tar.bz2
Fix leak.
-rw-r--r--src/declarative/util/qdeclarativeview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/declarative/util/qdeclarativeview.cpp b/src/declarative/util/qdeclarativeview.cpp
index c2dbf92..d97fb5f 100644
--- a/src/declarative/util/qdeclarativeview.cpp
+++ b/src/declarative/util/qdeclarativeview.cpp
@@ -129,6 +129,7 @@ class QDeclarativeViewPrivate
public:
QDeclarativeViewPrivate(QDeclarativeView *view)
: q(view), root(0), component(0), resizeMode(QDeclarativeView::SizeViewToRootObject) {}
+ ~QDeclarativeViewPrivate() { delete root; }
void execute();
@@ -270,7 +271,7 @@ void QDeclarativeViewPrivate::init()
*/
QDeclarativeView::~QDeclarativeView()
{
- delete d->root;
+ delete d;
}
/*! \property QDeclarativeView::source