summaryrefslogtreecommitdiffstats
path: root/src/script/api
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-09-20 08:50:23 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2012-09-25 21:11:21 (GMT)
commit770ef3867e7b7d8591f6a75783ee9ed1ce2da2d4 (patch)
tree6d73b5e67169041c9950b806a98f12dd94c65748 /src/script/api
parent872d6aff3ea96d548e0bad99def669b803368a36 (diff)
downloadQt-770ef3867e7b7d8591f6a75783ee9ed1ce2da2d4.zip
Qt-770ef3867e7b7d8591f6a75783ee9ed1ce2da2d4.tar.gz
Qt-770ef3867e7b7d8591f6a75783ee9ed1ce2da2d4.tar.bz2
Revert "Delete JS-owned QML objects right away in the engine dtor."
This reverts commit ecc432a5b7ae269220f86c6f0b3dd364f8643191 to fix a crash on exit. Task-number: QTBUG-20377 Change-Id: I6606ff194f2c16e06bdbbfca94e55821cf055f75 Reviewed-by: Lars Knoll <lars.knoll@digia.com> Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>
Diffstat (limited to 'src/script/api')
-rw-r--r--src/script/api/qscriptengine.cpp3
-rw-r--r--src/script/api/qscriptengine_p.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/src/script/api/qscriptengine.cpp b/src/script/api/qscriptengine.cpp
index cebbe0e..d821084 100644
--- a/src/script/api/qscriptengine.cpp
+++ b/src/script/api/qscriptengine.cpp
@@ -962,7 +962,7 @@ QScriptEnginePrivate::QScriptEnginePrivate()
qobjectPrototype(0), qmetaobjectPrototype(0), variantPrototype(0),
activeAgent(0), agentLineNumber(-1),
registeredScriptValues(0), freeScriptValues(0), freeScriptValuesCount(0),
- registeredScriptStrings(0), processEventsInterval(-1), inEval(false), inDestructor(false)
+ registeredScriptStrings(0), processEventsInterval(-1), inEval(false)
{
qMetaTypeId<QScriptValue>();
qMetaTypeId<QList<int> >();
@@ -1015,7 +1015,6 @@ QScriptEnginePrivate::QScriptEnginePrivate()
QScriptEnginePrivate::~QScriptEnginePrivate()
{
- inDestructor = true;
QScript::APIShim shim(this);
//disconnect all loadedScripts and generate all jsc::debugger::scriptUnload events
diff --git a/src/script/api/qscriptengine_p.h b/src/script/api/qscriptengine_p.h
index 8a7037b..6a023d7 100644
--- a/src/script/api/qscriptengine_p.h
+++ b/src/script/api/qscriptengine_p.h
@@ -382,7 +382,6 @@ public:
int processEventsInterval;
QScriptValue abortResult;
bool inEval;
- bool inDestructor;
JSC::UString cachedTranslationUrl;
JSC::UString cachedTranslationContext;