summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2011-10-18 14:22:08 +1000
committerQt by Nokia <qt-info@nokia.com>2011-10-18 09:19:43 +0200
commitc2863f69b7d8af33f88a42d1e77a6b393786a92e (patch)
tree2a30c912bdd08a0601b0d89fbfaa434cbf013892 /src
parent114a78616d5efdc3d8c3d93dcf6ba3bb624cd4a3 (diff)
downloadqtlocation-c2863f69b7d8af33f88a42d1e77a6b393786a92e.tar.gz
Fix memory leak and warnings on exit.
Change-Id: I5be0c125bc76cd6922b4501b53ec54dfcd72862e Reviewed-by: abcd <amos.choy@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp b/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
index 3d811421..71adf45b 100644
--- a/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
+++ b/src/imports/location/declarativeplaces/qdeclarativesupportedcategoriesmodel.cpp
@@ -111,6 +111,7 @@ QDeclarativeSupportedCategoriesModel::QDeclarativeSupportedCategoriesModel(QObje
QDeclarativeSupportedCategoriesModel::~QDeclarativeSupportedCategoriesModel()
{
+ qDeleteAll(m_categoriesTree);
}
// From QDeclarativeParserStatus