summaryrefslogtreecommitdiffstats
path: root/tools/qmldebugger/standalone
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2009-10-28 00:38:10 (GMT)
committerBea Lam <bea.lam@nokia.com>2009-10-28 00:38:10 (GMT)
commit92b7eea44ed5aa0a1b3b209b913b4039448a51db (patch)
treef20cdec84b01a316b85738e7fca59c13e570e913 /tools/qmldebugger/standalone
parent0f0a5081c671297d550fd51ccc66bb5fb8a68b86 (diff)
downloadQt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.zip
Qt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.tar.gz
Qt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.tar.bz2
Fix crash bug where watch is already deleted
Diffstat (limited to 'tools/qmldebugger/standalone')
-rw-r--r--tools/qmldebugger/standalone/watchtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/qmldebugger/standalone/watchtable.cpp b/tools/qmldebugger/standalone/watchtable.cpp
index a7fd052..19f034e 100644
--- a/tools/qmldebugger/standalone/watchtable.cpp
+++ b/tools/qmldebugger/standalone/watchtable.cpp
@@ -265,7 +265,8 @@ void WatchTableModel::removeAllWatches()
for (int i=0; i<m_columns.count(); i++) {
if (m_client)
m_client->removeWatch(m_columns[i].watch);
- delete m_columns[i].watch;
+ else
+ delete m_columns[i].watch;
}
m_columns.clear();
m_values.clear();