MCPcopy Create free account
hub / github.com/deathkiller/jazz2-native / FreeValue

Method FreeValue

Sources/Jazz2/Scripting/RegisterDictionary.cpp:448–459  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446 }
447
448 void CScriptDictValue::FreeValue(asIScriptEngine* engine)
449 {
450 // If it is a handle or a ref counted object, call release
451 if (m_typeId & asTYPEID_MASK_OBJECT) {
452 // Let the engine release the object
453 engine->ReleaseScriptObject(m_valueObj, engine->GetTypeInfoById(m_typeId));
454 m_valueObj = 0;
455 m_typeId = 0;
456 }
457
458 // For primitives, there's nothing to do
459 }
460
461 void CScriptDictValue::EnumReferences(asIScriptEngine* inEngine)
462 {

Callers 3

DeleteMethod · 0.80
DeleteAllMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected