forked from qt-creator/qt-creator
Fix a memory leak with the QmlJS scope chain.
This commit is contained in:
@@ -48,6 +48,7 @@ void Link::scopeChainAt(Document::Ptr doc, const QList<Node *> &astPath)
|
||||
if (doc->qmlProgram()) {
|
||||
_context->setLookupMode(Context::QmlLookup);
|
||||
|
||||
scopeChain.qmlComponentScope.clear();
|
||||
makeComponentChain(doc, &scopeChain.qmlComponentScope, &componentScopes);
|
||||
|
||||
if (const ObjectValue *typeEnvironment = _context->typeEnvironment(doc.data()))
|
||||
|
Reference in New Issue
Block a user