Fix a memory leak with the QmlJS scope chain.

This commit is contained in:
Christian Kamm
2010-02-22 11:21:03 +01:00
parent 28e348ace6
commit fcb6c4984e
3 changed files with 23 additions and 3 deletions

View File

@@ -229,9 +229,8 @@ public:
struct QmlComponentChain
{
QmlComponentChain()
: rootObject(0), ids(0)
{}
QmlComponentChain();
~QmlComponentChain();
QList<QmlComponentChain *> instantiatingComponents;
const ObjectValue *rootObject;
@@ -239,6 +238,7 @@ public:
const ObjectValue *ids;
void add(QList<const ObjectValue *> *list) const;
void clear();
};
const ObjectValue *globalScope;