void releaseFunctionPtr() { if( released ) { return; } released = true; funcPtr.release(); if( target ) { target->RemoveReference(); target = NULL; } }
virtual ~ScriptEventCaller() { funcPtr.release(); }
void releaseFunctionPtr() { released = true; funcPtr.release(); }