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

Method Release

src/server/angelscript/add_on/scriptarray/scriptarray.cpp:1846–1857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1844}
1845
1846void CScriptArray::Release() const
1847{
1848 // Clearing the GC flag then descrease the counter
1849 gcFlag = false;
1850 if( asAtomicDec(refCount) == 0 )
1851 {
1852 // When reaching 0 no more references to this instance
1853 // exists and the object should be destroyed
1854 this->~CScriptArray();
1855 userFree(const_cast<CScriptArray*>(this));
1856 }
1857}
1858
1859// GC behaviour
1860int CScriptArray::GetRefCount()

Callers 4

~CScriptArrayMethod · 0.45
operator==Method · 0.45
FindMethod · 0.45

Calls 2

~CScriptArrayMethod · 0.95
asAtomicDecFunction · 0.85

Tested by

no test coverage detected