MCPcopy Create free account
hub / github.com/CytopiaTeam/Cytopia / Release

Method Release

external/as_add_on/scriptarray/scriptarray.cpp:1829–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1827}
1828
1829void CScriptArray::Release() const
1830{
1831 // Clearing the GC flag then descrease the counter
1832 gcFlag = false;
1833 if( asAtomicDec(refCount) == 0 )
1834 {
1835 // When reaching 0 no more references to this instance
1836 // exists and the object should be destroyed
1837 this->~CScriptArray();
1838 userFree(const_cast<CScriptArray*>(this));
1839 }
1840}
1841
1842// GC behaviour
1843int CScriptArray::GetRefCount()

Callers 4

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

Calls 1

~CScriptArrayMethod · 0.95

Tested by

no test coverage detected