sq_release

Squirrel 2.2

sq_release

SQBool sq_release(HSQUIRRELVM v, HSQOBJECT * po);

remove a reference from an object handler.

parameters:
HSQUIRRELVM v

the target VM

HSQOBJECT * po

pointer to an object handler

return:

SQTrue if the object handler released has lost all is references(the ones added with sq_addref). SQFalse otherwise.

remarks:

the function will reset the object handler to null when it losts all references.