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

Method ReleaseHandle

Sources/Jazz2/Scripting/RegisterRef.cpp:69–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void CScriptHandle::ReleaseHandle()
70 {
71 if (m_ref != nullptr && m_type != nullptr) {
72 asIScriptEngine* engine = m_type->GetEngine();
73 engine->ReleaseScriptObject(m_ref, m_type);
74
75 engine->Release();
76
77 m_ref = nullptr;
78 m_type = nullptr;
79 }
80 }
81
82 void CScriptHandle::AddRefHandle()
83 {

Callers

nothing calls this directly

Calls 2

GetEngineMethod · 0.80
ReleaseMethod · 0.45

Tested by

no test coverage detected