CFRelease

Header: CFBase.h Carbon status: Supported

Releases a Core Foundation object.

void CFRelease (
    CFTypeRef cf
);
Parameter descriptions
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.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)