SQClass::~SQClass() { REMOVE_FROM_CHAIN(&_sharedstate->_gc_chain, this); Finalize(); }
SQClosure::~SQClosure() { __ObjRelease(_base); REMOVE_FROM_CHAIN(&_ss(this)->_gc_chain,this); }
SQInstance::~SQInstance() { REMOVE_FROM_CHAIN(&_sharedstate->_gc_chain, this); if(_class){ Finalize(); } //if _class is null it was already finalized by the GC }
SQInstance::~SQInstance() { REMOVE_FROM_CHAIN( &_sharedstate->_gc_chain, this ); Finalize(); }