Commit 8a0ddf1b authored by hjk's avatar hjk
Browse files

debugger: plug leak in watch model.

Brace for impact...
parent f65be39a
......@@ -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; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment