Home > dev > api > name > gb.unrefkeep 
 en fr de es it nl pt pt_BR mk sq ca hu cs tr ar fa id vi ko ja ru zh zh_TW eo
Previous  Next  Edit  Rename  Undo  Search  Administration  
Documentation  
Warning! This page is not translated.  See english version 
GB.UnRefKeep
void GB.UnRefKeep ( void **object )

Decrements the reference counter of an object. If the reference counter becomes nil, the object is NOT freed.

 ** object must receive the address of a variable containing a pointer at the object.

You must use this function each time you finish keeping an object reference and so must release it, but without freeing it.

If the reference counter is nil, a subsequent call to GB.Unref will free it anyway.

See also

api/cat/object