diff options
Diffstat (limited to 'src/Tree.cc')
-rw-r--r-- | src/Tree.cc | 6 |
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. |