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:
parent
394d83e86f
commit
ca711d7e68
|
@ -1344,6 +1344,7 @@ QQmlImportDatabase::QQmlImportDatabase(QQmlEngine *e)
|
|||
|
||||
QQmlImportDatabase::~QQmlImportDatabase()
|
||||
{
|
||||
qDeleteAll(qmldirCache);
|
||||
qmldirCache.clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue