Exemple #1
0
	void releaseFunctionPtr() {
		if( released ) {
			return;
		}

		released = true;
		funcPtr.release();

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