summaryrefslogtreecommitdiffstats
path: root/src/scripttools
diff options
context:
space:
mode:
authorKent Hansen <khansen@trolltech.com>2009-06-15 13:57:23 (GMT)
committerKent Hansen <khansen@trolltech.com>2009-06-15 14:05:36 (GMT)
commit2092ea2bacca35c79fff76e0c159a23d87d0571b (patch)
tree09e20c46f4e4308421cd24a600bbaa0648e16fb3 /src/scripttools
parent897e4a90fe17dd64a13aff41f64514fdbe8cdcbc (diff)
downloadQt-2092ea2bacca35c79fff76e0c159a23d87d0571b.zip
Qt-2092ea2bacca35c79fff76e0c159a23d87d0571b.tar.gz
Qt-2092ea2bacca35c79fff76e0c159a23d87d0571b.tar.bz2
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')
-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 3226262..94b085d 100644
--- a/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
+++ b/src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp
@@ -152,7 +152,6 @@ QScriptDebuggerLocalsModelPrivate::QScriptDebuggerLocalsModelPrivate()
QScriptDebuggerLocalsModelPrivate::~QScriptDebuggerLocalsModelPrivate()
{
- deleteAllObjectSnapshots();
delete invisibleRootNode;
}