1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-09 12:03:41 +00:00

Fixed crash in finalizer on linux, that could occur in an error condition

This commit is contained in:
Bryan Roe
2019-02-26 16:13:38 -08:00
parent 2633fc2928
commit 83bb49fcc1

View File

@@ -974,7 +974,7 @@ duk_ret_t ILibDuktape_HECI_Finalizer(duk_context *ctx)
HECI_chainLink *h = (HECI_chainLink*)duk_get_pointer(ctx, -1);
h->ctx = NULL;
h->heciObject = NULL;
ILibChain_SafeRemove(h->link.ParentChain, h);
if (h->link.ParentChain != NULL) { ILibChain_SafeRemove(h->link.ParentChain, h); }
}
#endif