diff --git a/VERSION b/VERSION index eca07e4..ac2cdeb 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.2 +2.1.3 diff --git a/lib/NGT/Tree.h b/lib/NGT/Tree.h index 5562dba..c04347f 100644 --- a/lib/NGT/Tree.h +++ b/lib/NGT/Tree.h @@ -248,9 +248,17 @@ namespace NGT { removeNode(Node::ID id) { size_t idx = id.getID(); if (id.getType() == Node::ID::Leaf) { +#ifndef NGT_SHARED_MEMORY_ALLOCATOR + LeafNode &n = *static_cast(getNode(id)); + delete n.pivot; +#endif leafNodes.remove(idx); } else { - internalNodes.remove(idx); +#ifndef NGT_SHARED_MEMORY_ALLOCATOR + InternalNode &n = *static_cast(getNode(id)); + delete n.pivot; +#endif + internalNodes.remove(idx); } }