Added destructor to HeapMaxPriorityQueue
This commit is contained in:
parent
f5778fd180
commit
f97ccfbf56
|
@ -43,6 +43,13 @@ public:
|
||||||
mMaxSize = 0;
|
mMaxSize = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
~HeapMaxPriorityQueue()
|
||||||
|
{
|
||||||
|
if (mElements)
|
||||||
|
delete[] mElements;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
inline void setMaxSize(int maxSize)
|
inline void setMaxSize(int maxSize)
|
||||||
{
|
{
|
||||||
if (mMaxSize!=maxSize)
|
if (mMaxSize!=maxSize)
|
||||||
|
|
Loading…
Reference in New Issue