CFReleaseHeader: CFBase.h

Releases a Core Foundation object.

void CFRelease (
    CFTypeRef cf
);
cf

A generic reference of type CFTypeRef. Pass a reference to any Core Foundation object that you want to release (that is, relinquish your claim of ownership).

DISCUSSION

Releases a Core Foundation object by decrementing its retention count. If that count consequently becomes zero the memory allocated to the object is deallocated and the object is destroyed. If you create, copy, or explictly retain (see the CFRetain function) a Core Foundation object, you are responsible for releasing it when you no longer need it.


© 1999 Apple Computer, Inc. — (Last Updated 9/15/99)