Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kObject_FreeMemRef ( kObject  object,
void *  mem 
)
protected

Protected method called by derived classes to free memory (and reset the provided memory pointer to kNULL) using the object's allocator.

This method is provided for convenience; alternatively, the allocator provided by kObject_Alloc can also be used directly.

Parameters
objectObject instance.
memPointer to pointer to memory to free (or pointer to kNULL).
Returns
Operation status.