diff options
author | Ulf Hermann <[email protected]> | 2016-10-28 12:53:24 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2016-10-28 11:39:18 +0000 |
commit | 424005c91183edb72000ed795522c1256d68de13 (patch) | |
tree | a40b6cb0746b6b450ffd957f4b041dede21ef8e5 /src/libs/qmljs/qmljsmodelmanagerinterface.h | |
parent | ff2168948778da058467cb3698ec8023cbc4a73a (diff) |
QmlJS: Release the same documents we keep before
When rescanning imports we generally get a new version of the parent
document. When replacing the cached documents we want to release the
old ones, not the new ones. Failing to do so leads to types
disappearing from the QML code model and to leaking memory.
Task-number: QTCREATORBUG-17175
Change-Id: I3994444ac0a6cd87f9d9d0b47ab3d6015660e416
Reviewed-by: Thomas Hartmann <[email protected]>
Diffstat (limited to 'src/libs/qmljs/qmljsmodelmanagerinterface.h')
-rw-r--r-- | src/libs/qmljs/qmljsmodelmanagerinterface.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/qmljs/qmljsmodelmanagerinterface.h b/src/libs/qmljs/qmljsmodelmanagerinterface.h index 3f640c6ca78..2cb02083f6e 100644 --- a/src/libs/qmljs/qmljsmodelmanagerinterface.h +++ b/src/libs/qmljs/qmljsmodelmanagerinterface.h @@ -275,7 +275,7 @@ private: QrcCache m_qrcCache; CppDataHash m_cppDataHash; - QHash<QString, QStringList> m_cppDeclarationFiles; + QHash<QString, QList<CPlusPlus::Document::Ptr> > m_cppDeclarationFiles; mutable QMutex m_cppDataMutex; // project integration |