diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-16 03:47:06 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2010-02-16 03:47:06 (GMT) |
commit | 2ad3954c6a383553f000d5d223eff4acf34d3c77 (patch) | |
tree | e39b5afb658ebbcaca82f8d768f4b666f931d972 /src/declarative/qml/qmlcontext.cpp | |
parent | 1f5170e7556a590eaa6581cf212775208620f934 (diff) | |
download | Qt-2ad3954c6a383553f000d5d223eff4acf34d3c77.zip Qt-2ad3954c6a383553f000d5d223eff4acf34d3c77.tar.gz Qt-2ad3954c6a383553f000d5d223eff4acf34d3c77.tar.bz2 |
QML binding optimizer crash
The context's id values must be deleted after the compiled bindings as they
may access the id values during shutdown.
Diffstat (limited to 'src/declarative/qml/qmlcontext.cpp')
-rw-r--r-- | src/declarative/qml/qmlcontext.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmlcontext.cpp b/src/declarative/qml/qmlcontext.cpp index d9fc76b..3c419b6 100644 --- a/src/declarative/qml/qmlcontext.cpp +++ b/src/declarative/qml/qmlcontext.cpp @@ -300,8 +300,6 @@ QmlContext::~QmlContext() co->prevContextObject = 0; } - delete [] d->idValues; - if (d->propertyNames) d->propertyNames->release(); @@ -310,6 +308,8 @@ QmlContext::~QmlContext() if (d->optimizedBindings) d->optimizedBindings->release(); + + delete [] d->idValues; } void QmlContextPrivate::invalidateEngines() |