diff options
author | hjk <[email protected]> | 2010-02-17 13:54:16 +0100 |
---|---|---|
committer | hjk <[email protected]> | 2010-02-17 17:08:02 +0100 |
commit | 8a0ddf1b9f0e715a619f1fd8503f2f525d81c0d1 (patch) | |
tree | 499b47754c2fdacd33452bb3a8bb1bc94ff81f91 /src/plugins | |
parent | f65be39a5d1adee1f559f12d63d6b5657d45c6a0 (diff) |
debugger: plug leak in watch model.
Brace for impact...
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/debugger/watchhandler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/plugins/debugger/watchhandler.cpp b/src/plugins/debugger/watchhandler.cpp index 18b1757eb32..e72076d3a73 100644 --- a/src/plugins/debugger/watchhandler.cpp +++ b/src/plugins/debugger/watchhandler.cpp @@ -85,6 +85,12 @@ class WatchItem : public WatchData public: WatchItem() { parent = 0; } + ~WatchItem() { + if (parent != 0) + parent->children.removeOne(this); + qDeleteAll(children); + } + WatchItem(const WatchData &data) : WatchData(data) { parent = 0; } |