diff options
author | Alan Alpert <aalpert@rim.com> | 2013-01-24 17:42:20 -0800 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-29 02:30:06 +0100 |
commit | ca711d7e6878de89ba0ae4fe6ec61d9946199fd9 (patch) | |
tree | 56a770f14dc7caba1ac70e418e4c50fa2a9be619 /src/qml/qml/qqmlimport.cpp | |
parent | 394d83e86fa193d0df770f7a94627681ac2f7c1c (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.cpp | 1 |
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(); } |