diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-26 01:36:00 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-10-26 01:36:00 (GMT) |
commit | 2b0cf3b6a2f1c49f40d6f50b4d24bdd87a4807fa (patch) | |
tree | 5054d537a64aedb53761ae5c8f3ee8b8dda1aa1a /src/declarative/qml/qmlengine_p.h | |
parent | cbb1b29d397c063fc3bcae04c5b062f20cbd12c5 (diff) | |
download | Qt-2b0cf3b6a2f1c49f40d6f50b4d24bdd87a4807fa.zip Qt-2b0cf3b6a2f1c49f40d6f50b4d24bdd87a4807fa.tar.gz Qt-2b0cf3b6a2f1c49f40d6f50b4d24bdd87a4807fa.tar.bz2 |
Ensure cleanup happens before the destruction of QScriptEngine
This was causing crashes on windows.
Diffstat (limited to 'src/declarative/qml/qmlengine_p.h')
-rw-r--r-- | src/declarative/qml/qmlengine_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlengine_p.h b/src/declarative/qml/qmlengine_p.h index a74854d..29621c0 100644 --- a/src/declarative/qml/qmlengine_p.h +++ b/src/declarative/qml/qmlengine_p.h @@ -97,6 +97,7 @@ class QmlTypeNameScriptClass; class QmlTypeNameCache; class QmlComponentAttached; class QmlListScriptClass; +class QmlCleanup; class QmlEnginePrivate : public QObjectPrivate { @@ -139,6 +140,9 @@ public: // Used by SQL database API QScriptClass *sqlQueryClass; + // Registered cleanup handlers + QmlCleanup *cleanup; + struct QmlScriptEngine : public QScriptEngine { QmlScriptEngine(QmlEnginePrivate *priv) |