summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-04-21 04:11:39 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-04-21 04:11:39 (GMT)
commitf24df625d4bdf9ff96853a4f0a5426a12d0be94c (patch)
tree5d94adb8d4463f8fae3168a36153d9bab6942fce
parent831b27e8fb9d12345c33315b7d7c08b613e3d4bb (diff)
downloadQt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.zip
Qt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.tar.gz
Qt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.tar.bz2
Fix crash.
Reviewed-by: Aaron Kennedy
-rw-r--r--src/declarative/qml/qdeclarativebinding.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativebinding.cpp b/src/declarative/qml/qdeclarativebinding.cpp
index 95520da..d44e7fb 100644
--- a/src/declarative/qml/qdeclarativebinding.cpp
+++ b/src/declarative/qml/qdeclarativebinding.cpp
@@ -361,8 +361,10 @@ void QDeclarativeAbstractBinding::removeFromObject()
void QDeclarativeAbstractBinding::clear()
{
- if (m_mePtr)
+ if (m_mePtr) {
*m_mePtr = 0;
+ m_mePtr = 0;
+ }
}
QString QDeclarativeAbstractBinding::expression() const