diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-01-14 00:57:21 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2011-01-14 01:02:09 (GMT) |
commit | 4f9c026a02c2ecf0d19e7aee4ecae82e64cbaee8 (patch) | |
tree | faf79fd472e1a2589b27b75e7a40b361844f5727 /src/declarative/qml | |
parent | 5207e48e469e279fe20304914e92edd73c5c641f (diff) | |
download | Qt-4f9c026a02c2ecf0d19e7aee4ecae82e64cbaee8.zip Qt-4f9c026a02c2ecf0d19e7aee4ecae82e64cbaee8.tar.gz Qt-4f9c026a02c2ecf0d19e7aee4ecae82e64cbaee8.tar.bz2 |
Fix memory leak
Task-number: QTBUG-16526
Diffstat (limited to 'src/declarative/qml')
-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(); |