summaryrefslogtreecommitdiff
path: root/src/Tree.cc
diff options
context:
space:
mode:
authorDon Bright <hugh.m.bright@gmail.com>2011-12-07 01:08:51 (GMT)
committerDon Bright <hugh.m.bright@gmail.com>2011-12-07 01:08:51 (GMT)
commit2c90eaa189cd5bc96ef56e89f2841d36f54d0ae2 (patch)
tree9f732cf3913312bfb99dc79253bef906864c34b5 /src/Tree.cc
parent750f3c8fc94744d6cc4c62de6ac86595cb2b38b6 (diff)
parentbb0ec94290733835df0716531c30460fc5b5210a (diff)
Merge remote branch 'upstream/master' into cakebaby
Conflicts: tests/CMakeLists.txt tests/csgtestcore.cc
Diffstat (limited to 'src/Tree.cc')
-rw-r--r--src/Tree.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Tree.cc b/src/Tree.cc
index 7c4866b..d27e198 100644
--- a/src/Tree.cc
+++ b/src/Tree.cc
@@ -4,6 +4,12 @@
#include <assert.h>
#include <algorithm>
+Tree::~Tree()
+{
+ this->nodecache.clear();
+ this->nodeidcache.clear();
+}
+
/*!
Returns the cached string representation of the subtree rooted by \a node.
If node is not cached, the cache will be rebuilt.
contact: Jan Huwald // Impressum