summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brasser <michael.brasser@nokia.com>2011-09-01 23:14:33 (GMT)
committerMichael Brasser <michael.brasser@nokia.com>2011-09-01 23:50:24 (GMT)
commit3750d24175904916fe5ab8b1a76db956b1904e72 (patch)
tree090d1d39cee74298fd893aa3260d31045181da39 /src
parent941f886eab8714a02003816f347103697437e7db (diff)
downloadQt-3750d24175904916fe5ab8b1a76db956b1904e72.zip
Qt-3750d24175904916fe5ab8b1a76db956b1904e72.tar.gz
Qt-3750d24175904916fe5ab8b1a76db956b1904e72.tar.bz2
Fix leak in bindings created by PropertyChanges.
Change-Id: I1c7b575e1ace2b879dba130cd31e3ff8cf67260a Task-number: QTBUG-17770 Reviewed-by: Aaron Kennedy
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qdeclarativebinding.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp
index 689cd00..9359196 100644
--- a/src/declarative/qml/qdeclarativebinding.cpp
+++ b/src/declarative/qml/qdeclarativebinding.cpp
@@ -254,6 +254,8 @@ QDeclarativeBinding::createBinding(Identifier id, QObject *obj, QDeclarativeCont
cdata = typeData->compiledData();
}
QDeclarativeBinding *rv = cdata ? new QDeclarativeBinding((void*)cdata->datas.at(id).constData(), cdata, obj, ctxtdata, url, lineNumber, parent) : 0;
+ if (cdata)
+ cdata->release();
if (typeData)
typeData->release();
return rv;