aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2014-03-10 17:38:33 +0100
committerThe Qt Project <[email protected]>2014-03-11 16:53:54 +0100
commitd5be05c624c59270cc1f16f35b6fe58beebccd23 (patch)
tree107da17c9a5bfe705c0130b840847d66752a8293
parent0e09aa0f2b64e8f62703a34018352cc3fa18fffc (diff)
Allow detaching V4 debuggers in agent destructor
We don't know in which order the QML engines and the debug service are deleted on shutdown. Change-Id: I9d23b3c88eee125a93c5b0f8ea85466013233737 Reviewed-by: Simon Hausmann <[email protected]>
-rw-r--r--src/qml/jsruntime/qv4debugging.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qml/jsruntime/qv4debugging.cpp b/src/qml/jsruntime/qv4debugging.cpp
index 04489903c3..06c6dbb4d9 100644
--- a/src/qml/jsruntime/qv4debugging.cpp
+++ b/src/qml/jsruntime/qv4debugging.cpp
@@ -686,6 +686,9 @@ void DebuggerAgent::setBreakOnThrow(bool onoff)
DebuggerAgent::~DebuggerAgent()
{
+ foreach (Debugger *debugger, m_debuggers)
+ debugger->detachFromAgent();
+
Q_ASSERT(m_debuggers.isEmpty());
}