diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-17 07:23:44 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-03-17 07:24:22 (GMT) |
commit | 8b6f892ae48d296875a295381d4f67a8a5968a30 (patch) | |
tree | ee4fa4a4fd2606f987746d4ccf290b57242f1ecc /src/declarative/qml/qdeclarativeexpression.cpp | |
parent | 0dcdcac2898c5978ea3250ed2627a9e47dd86d96 (diff) | |
download | Qt-8b6f892ae48d296875a295381d4f67a8a5968a30.zip Qt-8b6f892ae48d296875a295381d4f67a8a5968a30.tar.gz Qt-8b6f892ae48d296875a295381d4f67a8a5968a30.tar.bz2 |
Crash
Diffstat (limited to 'src/declarative/qml/qdeclarativeexpression.cpp')
-rw-r--r-- | src/declarative/qml/qdeclarativeexpression.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativeexpression.cpp b/src/declarative/qml/qdeclarativeexpression.cpp index 609eb39..20863c7 100644 --- a/src/declarative/qml/qdeclarativeexpression.cpp +++ b/src/declarative/qml/qdeclarativeexpression.cpp @@ -95,7 +95,13 @@ QDeclarativeExpressionPrivate::QDeclarativeExpressionPrivate(QDeclarativeExpress QDeclarativeExpressionPrivate::~QDeclarativeExpressionPrivate() { - if (data) { data->q = 0; data->release(); data = 0; } + if (data) { + delete [] data->guardList; + data->guardList = 0; + data->q = 0; + data->release(); + data = 0; + } } void QDeclarativeExpressionPrivate::init(QDeclarativeContextData *ctxt, const QString &expr, |