diff options
author | Bea Lam <bea.lam@nokia.com> | 2009-10-28 00:38:10 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2009-10-28 00:38:10 (GMT) |
commit | 92b7eea44ed5aa0a1b3b209b913b4039448a51db (patch) | |
tree | f20cdec84b01a316b85738e7fca59c13e570e913 /tools/qmldebugger | |
parent | 0f0a5081c671297d550fd51ccc66bb5fb8a68b86 (diff) | |
download | Qt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.zip Qt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.tar.gz Qt-92b7eea44ed5aa0a1b3b209b913b4039448a51db.tar.bz2 |
Fix crash bug where watch is already deleted
Diffstat (limited to 'tools/qmldebugger')
-rw-r--r-- | tools/qmldebugger/standalone/watchtable.cpp | 3 |
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(); |