Contents

xpc_retain

Increments the reference count of an object.

Declaration

extern xpc_object_t xpc_retain(xpc_object_t object);

Parameters

  • object:

    The object which is to be manipulated.

Return Value

The object which was given.

Discussion

Calls to xpc_retain must be balanced with calls to xpc_release to avoid leaking memory.

See Also

Object life cycle