MCPcopy Create free account
hub / github.com/MayaPosch/NymphCast / Release

Method Release

src/server/angelscript/add_on/scriptgrid/scriptgrid.cpp:776–787  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776void CScriptGrid::Release() const
777{
778 // Clearing the GC flag then descrease the counter
779 gcFlag = false;
780 if( asAtomicDec(refCount) == 0 )
781 {
782 // When reaching 0 no more references to this instance
783 // exists and the object should be destroyed
784 this->~CScriptGrid();
785 userFree(const_cast<CScriptGrid*>(this));
786 }
787}
788
789// GC behaviour
790int CScriptGrid::GetRefCount()

Callers 1

~CScriptGridMethod · 0.45

Calls 2

~CScriptGridMethod · 0.95
asAtomicDecFunction · 0.85

Tested by

no test coverage detected