diff options
author | Chris Adams <christopher.adams@nokia.com> | 2011-08-02 15:41:22 +1000 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2011-09-05 01:31:08 +0200 |
commit | f22ae0f5f18a354bf3addd8023ad8b8810e42bac (patch) | |
tree | e772b582dfa461456503b5fca8431414956625bc /src/declarative/qml/qdeclarativeexpression.cpp | |
parent | ae064a9dc862b5912bde030394c426d166194898 (diff) |
Fix some memory leaks in the compiler
Task-number: QTBUG-17770
Change-Id: I6d9d357bf529a9a3f414182fb6a818ddedda8e18
Reviewed-on: http://codereview.qt.nokia.com/2487
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
Diffstat (limited to 'src/declarative/qml/qdeclarativeexpression.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativeexpression.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativeexpression.cpp b/src/declarative/qml/qdeclarativeexpression.cpp index a24d46914c..4f6a71911f 100644 --- a/src/declarative/qml/qdeclarativeexpression.cpp +++ b/src/declarative/qml/qdeclarativeexpression.cpp @@ -256,6 +256,8 @@ QDeclarativeExpression::QDeclarativeExpression(const QDeclarativeScriptString &s else defaultConstruction = true; + if (cdata) + cdata->release(); if (typeData) typeData->release(); } |