diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-16 03:12:45 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-16 03:12:45 (GMT) |
commit | d6b2b36b02f6c61e91209629dd7af30311014873 (patch) | |
tree | 726b188ab27bc093a43c9af20f4a12d7875a0575 /src/declarative/qml/qmlbinding.cpp | |
parent | dd4d3e1ce0adba26396c5ab4e77c728e2159ff30 (diff) | |
download | Qt-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.cpp | 6 |
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>"); |