Mercurial > dedupe
changeset 17:9a1825df8418
Plug memoryleaks.
| author | Tom Fredrik Blenning Klaussen <bfg@blenning.no> |
|---|---|
| date | Tue, 28 Aug 2012 19:15:33 +0200 |
| parents | 06166d6c083b |
| children | fcb7a71a22c1 |
| files | DataController.cpp RBTree.hpp |
| diffstat | 2 files changed, 12 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/DataController.cpp Tue Aug 28 18:58:02 2012 +0200 +++ b/DataController.cpp Tue Aug 28 19:15:33 2012 +0200 @@ -483,6 +483,7 @@ DataController::~DataController() { + delete dblink; }
--- a/RBTree.hpp Tue Aug 28 18:58:02 2012 +0200 +++ b/RBTree.hpp Tue Aug 28 19:15:33 2012 +0200 @@ -33,6 +33,12 @@ this->data = data; } + ~RBTreeNode() + { + delete left; + delete right; + } + void setColor(Color color) { red = (color == RED); @@ -269,6 +275,11 @@ RBTree() : node(0) { } + + ~RBTree() + { + delete node; + } bool consistent() const {
