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>
This commit is contained in:
Alan Alpert 2013-01-24 17:42:20 -08:00 committed by The Qt Project
parent 394d83e86f
commit ca711d7e68
1 changed files with 1 additions and 0 deletions

View File

@ -1344,6 +1344,7 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
QQmlImportDatabase::~QQmlImportDatabase()
{
qDeleteAll(qmldirCache);
qmldirCache.clear();
}