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

Method Release

sdk/add_on/scriptdictionary/scriptdictionary.cpp:208–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208void CScriptDictionary::Release() const
209{
210 // We need to clear the GC flag
211 gcFlag = false;
212 if( asAtomicDec(refCount) == 0 )
213 {
214 this->~CScriptDictionary();
215 asFreeMem(const_cast<CScriptDictionary*>(this));
216 }
217}
218
219int CScriptDictionary::GetRefCount()
220{

Callers 2

Calls 4

~CScriptDictionaryMethod · 0.95
~CScriptDictIterMethod · 0.95
asAtomicDecFunction · 0.85
asFreeMemFunction · 0.85

Tested by

no test coverage detected