Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kStatus kObject_Destroy ( kObject  object)

Destroys the object.

The kObject_Destroy method destroys the object itself and any resources that are owned by the object. See Object Destruction for more information.

When an object is destroyed (or disposed), its reference count is decremented. The object is only truly destroyed when the reference count reaches zero. See Reference Counting for more information.

To support releasing resources, derived classes should override the kObject_VRelease method.

Parameters
objectObject (or kNULL).
Returns
Operation status.
See also
Object Destruction, Reference Counting