Microsoft Windows CE 3.0  

CBaseAllocator::Free

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Called to decommit the memory when the last buffer is freed.

virtual void Free(void) PURE;

Return Values

No return value.

Remarks

This member function must be implemented in the derived class. It is called from CBaseAllocator::ReleaseBufferwhen a decommit is pending and the allocator has put its last buffer on the free list. It is also called from CBaseAllocator::Decommit.

The CMemAllocator::Freemember function is an example of how this can be implemented in the derived class. In this case, it simply returns, because the CMemAllocatorclass releases memory from its destructor.

This member function is protected.