MCPcopy Create free account
hub / github.com/anjo76/angelscript / Release

Method Release

sdk/add_on/scriptarray/scriptarray.cpp:1952–1963  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1950}
1951
1952void CScriptArray::Release() const
1953{
1954 // Clearing the GC flag then descrease the counter
1955 gcFlag = false;
1956 if( asAtomicDec(refCount) == 0 )
1957 {
1958 // When reaching 0 no more references to this instance
1959 // exists and the object should be destroyed
1960 this->~CScriptArray();
1961 userFree(const_cast<CScriptArray*>(this));
1962 }
1963}
1964
1965// GC behaviour
1966int 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