aboutsummaryrefslogtreecommitdiffstats
path: root/src/qml/qml/qqmlimport.cpp
diff options
context:
space:
mode:
authorAlan Alpert <aalpert@rim.com>2013-01-24 17:42:20 -0800
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-01-29 02:30:06 +0100
commitca711d7e6878de89ba0ae4fe6ec61d9946199fd9 (patch)
tree56a770f14dc7caba1ac70e418e4c50fa2a9be619 /src/qml/qml/qqmlimport.cpp
parent394d83e86fa193d0df770f7a94627681ac2f7c1c (diff)
Fix memory leak
The cache is filled with dynamically created entries, so clear is not quite enough. Change-Id: I40a49ce5d1a3d6da1b419e85cae95f2f95011a19 Reviewed-by: Laszlo Papp <lpapp@kde.org> Reviewed-by: Christopher Adams <chris.adams@jollamobile.com>
Diffstat (limited to 'src/qml/qml/qqmlimport.cpp')
-rw-r--r--src/qml/qml/qqmlimport.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp
index f2573895c6..fb4d8c007f 100644
--- a/src/qml/qml/qqmlimport.cpp
+++ b/src/qml/qml/qqmlimport.cpp
@@ -1344,6 +1344,7 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
QQmlImportDatabase::~QQmlImportDatabase()
{
+ qDeleteAll(qmldirCache);
qmldirCache.clear();
}