diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2010-04-21 04:11:39 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2010-04-21 04:11:39 (GMT) |
commit | f24df625d4bdf9ff96853a4f0a5426a12d0be94c (patch) | |
tree | 5d94adb8d4463f8fae3168a36153d9bab6942fce | |
parent | 831b27e8fb9d12345c33315b7d7c08b613e3d4bb (diff) | |
download | Qt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.zip Qt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.tar.gz Qt-f24df625d4bdf9ff96853a4f0a5426a12d0be94c.tar.bz2 |
Fix crash.
Reviewed-by: Aaron Kennedy
-rw-r--r-- | src/declarative/qml/qdeclarativebinding.cpp | 4 |
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 |