summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbinding.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2010-02-16 03:12:45 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2010-02-16 03:12:45 (GMT)
commitd6b2b36b02f6c61e91209629dd7af30311014873 (patch)
tree726b188ab27bc093a43c9af20f4a12d7875a0575 /src/declarative/qml/qmlbinding.cpp
parentdd4d3e1ce0adba26396c5ab4e77c728e2159ff30 (diff)
downloadQt-d6b2b36b02f6c61e91209629dd7af30311014873.zip
Qt-d6b2b36b02f6c61e91209629dd7af30311014873.tar.gz
Qt-d6b2b36b02f6c61e91209629dd7af30311014873.tar.bz2
Fix crash in QML binding optimizer
Optimized bindings need to reset the mePtr too.
Diffstat (limited to 'src/declarative/qml/qmlbinding.cpp')
-rw-r--r--src/declarative/qml/qmlbinding.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlbinding.cpp b/src/declarative/qml/qmlbinding.cpp
index 3e29a3c..a986818 100644
--- a/src/declarative/qml/qmlbinding.cpp
+++ b/src/declarative/qml/qmlbinding.cpp
@@ -291,6 +291,12 @@ void QmlAbstractBinding::removeFromObject()
}
}
+void QmlAbstractBinding::clear()
+{
+ if (m_mePtr)
+ *m_mePtr = 0;
+}
+
QString QmlAbstractBinding::expression() const
{
return QLatin1String("<Unknown>");