mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-03 09:03:48 +00:00
Fixed crash on self-update, caused by IOActive fix on posix
This commit is contained in:
@@ -765,6 +765,12 @@ void Duktape_SafeDestroyHeap(duk_context *ctx)
|
||||
|
||||
duk_destroy_heap(ctx);
|
||||
|
||||
if (ctxd->fakechain != 0 && ctxd->chain != NULL)
|
||||
{
|
||||
ILibChain_DestroyEx(ctxd->chain);
|
||||
ctxd->chain = NULL;
|
||||
}
|
||||
|
||||
if (ILibLinkedList_GetCount(ctxd->threads) > 0)
|
||||
{
|
||||
#ifdef WIN32
|
||||
@@ -797,6 +803,7 @@ void Duktape_SafeDestroyHeap(duk_context *ctx)
|
||||
#endif
|
||||
}
|
||||
ILibLinkedList_Destroy(ctxd->threads);
|
||||
|
||||
ILibMemory_Free(ctxd);
|
||||
}
|
||||
void *Duktape_GetChain(duk_context *ctx)
|
||||
|
||||
Reference in New Issue
Block a user