mirror of
https://github.com/Ylianst/MeshAgent
synced 2026-01-08 19:44:06 +00:00
Added missing memory check
This commit is contained in:
@@ -110,6 +110,8 @@ void* Duktape_DynamicBuffer_Resize(duk_context *ctx, duk_idx_t idx, duk_size_t b
|
||||
void Duktape_RunOnEventLoop_AbortSink(void *chain, void *user)
|
||||
{
|
||||
Duktape_EventLoopDispatchData *tmp = (Duktape_EventLoopDispatchData*)user;
|
||||
if (!ILibMemory_CanaryOK(tmp)) { return; }
|
||||
|
||||
if (tmp->abortHandler == (Duktape_EventLoopDispatch)(uintptr_t)0x01)
|
||||
{
|
||||
if (tmp->user != NULL) { free(tmp->user); }
|
||||
|
||||
Reference in New Issue
Block a user