summaryrefslogtreecommitdiff
path: root/src/qml/jsruntime/qv4debugging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qml/jsruntime/qv4debugging.cpp')
-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());
}