summaryrefslogtreecommitdiff
path: root/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-15 15:57:23 +0200
committerKent Hansen <khansen@trolltech.com>2009-06-15 16:05:36 +0200
commit2092ea2bacca35c79fff76e0c159a23d87d0571b (patch)
tree09e20c46f4e4308421cd24a600bbaa0648e16fb3 /src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
parent897e4a90fe17dd64a13aff41f64514fdbe8cdcbc (diff)
downloadqt4-tools-2092ea2bacca35c79fff76e0c159a23d87d0571b.tar.gz
don't try to delete script object snapshots when debugger front-end is deleted
The locals model is technically part of the debugger front-end. When it's deleted we will have detached (or are in the process of detaching) from the debugger target anyway, which means that the object snapshots will be cleaned up by the back-end itself. In any case we shouldn't be sending debugger commands from a destructor, since we're not in a stable state. For in-process debugging, we were lucky and this magically worked, but for out-of-process debugging it caused the debugger to crash.
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp')
-rw-r--r--src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp b/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
index 3226262aa4..94b085d626 100644
--- a/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
+++ b/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
@@ -152,7 +152,6 @@ QScriptDebuggerLocalsModelPrivate::QScriptDebuggerLocalsModelPrivate()
QScriptDebuggerLocalsModelPrivate::~QScriptDebuggerLocalsModelPrivate()
{
- deleteAllObjectSnapshots();
delete invisibleRootNode;
}