| 391 | } |
| 392 | |
| 393 | void 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 | |
| 408 | asCScriptObject::~asCScriptObject() |
| 409 | { |
no test coverage detected