From: Alan Alpert Date: Fri, 25 Jan 2013 01:42:20 +0000 (-0800) Subject: Fix memory leak X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=ca711d7e6878de89ba0ae4fe6ec61d9946199fd9;p=konrad%2Fqtdeclarative.git Fix memory leak The cache is filled with dynamically created entries, so clear is not quite enough. Change-Id: I40a49ce5d1a3d6da1b419e85cae95f2f95011a19 Reviewed-by: Laszlo Papp Reviewed-by: Christopher Adams --- diff --git a/src/qml/qml/qqmlimport.cpp b/src/qml/qml/qqmlimport.cpp index f257389..fb4d8c0 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(); }