MemoryHeap::ReleaseOnFree

MemoryHeap::ReleaseOnFree
void ReleaseOnFree(void * ptr);
Description

ReleaseOnFree marks allocation for automatic cleanup of heap. When this allocation is freed, the entire heap will be destroyed. Allocation must belong to this heap, and usually should be the last item to be freed.

Parameters
Parameters 
Description 
void * ptr 
Heap for cleanup.