The constructor allocates memory via new[]. It should be freed up via
delete[] by a destructor to avoid a memory leak.
}
}
+ GCHeap::~GCHeap()
+ {
+ delete [] mHeaps;
+ }
+
ObjectIterator GCHeap::WalkHeap(TADDR start, TADDR stop) const
{
return ObjectIterator(mHeaps, mNumHeaps, start, stop);
*/
GCHeap();
+ ~GCHeap();
+
/* Returns an ObjectIterator which allows you to walk the objects on the managed heap.
* This ObjectIterator is valid for the duration of the GCHeap's lifetime. Note that
* if you specify an address at which you wish to start walking the heap it need