diff --git a/vcg/space/index/kdtree/priorityqueue.h b/vcg/space/index/kdtree/priorityqueue.h index 13aae024..956dc54f 100755 --- a/vcg/space/index/kdtree/priorityqueue.h +++ b/vcg/space/index/kdtree/priorityqueue.h @@ -43,6 +43,13 @@ public: mMaxSize = 0; } + ~HeapMaxPriorityQueue() + { + if (mElements) + delete[] mElements; + } + + inline void setMaxSize(int maxSize) { if (mMaxSize!=maxSize)