From ca711d7e6878de89ba0ae4fe6ec61d9946199fd9 Mon Sep 17 00:00:00 2001 From: Alan Alpert Date: Thu, 24 Jan 2013 17:42:20 -0800 Subject: [PATCH] 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 --- 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 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(); } -- 1.7.2.5