diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-01-14 00:57:21 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2011-01-21 08:01:15 (GMT) |
commit | 0b1971d4a6678ab193838d0b841ae84c723c97b1 (patch) | |
tree | 0d016f69d923710fb96257a9f0bae4b4a5068bd0 /src | |
parent | 47f7512133db2954cc739bf9a8734c631008ed38 (diff) | |
download | Qt-0b1971d4a6678ab193838d0b841ae84c723c97b1.zip Qt-0b1971d4a6678ab193838d0b841ae84c723c97b1.tar.gz Qt-0b1971d4a6678ab193838d0b841ae84c723c97b1.tar.bz2 |
Fix memory leak
Task-number: QTBUG-16526
(cherry picked from commit 4f9c026a02c2ecf0d19e7aee4ecae82e64cbaee8)
Diffstat (limited to 'src')
-rw-r--r-- | src/declarative/qml/qdeclarativevme.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativevme.cpp b/src/declarative/qml/qdeclarativevme.cpp index 6d49625..fb07bef 100644 --- a/src/declarative/qml/qdeclarativevme.cpp +++ b/src/declarative/qml/qdeclarativevme.cpp @@ -938,8 +938,13 @@ QObject *QDeclarativeVME::run(QDeclarativeVMEStack<QObject *> &stack, if (bindValues.count) ep->bindValues << bindValues; + else if (bindValues.values) + bindValues.clear(); + if (parserStatus.count) ep->parserStatus << parserStatus; + else if (parserStatus.values) + parserStatus.clear(); Q_ASSERT(stack.count() == 1); return stack.top(); |