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

Method Destruct

sdk/angelscript/source/as_scriptobject.cpp:393–406  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393void asCScriptObject::Destruct()
394{
395 // Call the destructor, which will also call the GCObject's destructor
396 this->~asCScriptObject();
397
398 // Free the memory
399#ifndef WIP_16BYTE_ALIGN
400 userFree(this);
401#else
402 // Script object memory is allocated through asCScriptEngine::CallAlloc()
403 // This free call must match the allocator used in CallAlloc().
404 userFreeAligned(this);
405#endif
406}
407
408asCScriptObject::~asCScriptObject()
409{

Callers 1

ReleaseMethod · 0.45

Calls 1

~asCScriptObjectMethod · 0.95

Tested by

no test coverage detected