From 2092ea2bacca35c79fff76e0c159a23d87d0571b Mon Sep 17 00:00:00 2001
From: Kent Hansen <khansen@trolltech.com>
Date: Mon, 15 Jun 2009 15:57:23 +0200
Subject: 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.
---
 src/scripttools/debugging/qscriptdebuggerlocalsmodel.cpp | 1 -
 1 file changed, 1 deletion(-)

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;
 }
 
-- 
cgit v0.12