From 92b7eea44ed5aa0a1b3b209b913b4039448a51db Mon Sep 17 00:00:00 2001 From: Bea Lam Date: Wed, 28 Oct 2009 10:38:10 +1000 Subject: Fix crash bug where watch is already deleted --- tools/qmldebugger/standalone/watchtable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; iremoveWatch(m_columns[i].watch); - delete m_columns[i].watch; + else + delete m_columns[i].watch; } m_columns.clear(); m_values.clear(); -- cgit v0.12