GB.Unref

void GB.Unref ( void ** object )

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

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

If the object is freed, the variable that object points at is set to null.

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