1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-30 15:13:57 +00:00

1. Fixed valgrind issue

2. Updated child_process, to now have back-parent pointer on completion
This commit is contained in:
Bryan Roe
2021-02-16 21:59:48 -08:00
parent 71b5e588c3
commit ebf06898b2
4 changed files with 53 additions and 13 deletions

View File

@@ -260,7 +260,7 @@ void *Duktape_Duplicate_GetBufferPropertyEx(duk_context *ctx, duk_idx_t i, char*
source = Duktape_GetBufferPropertyEx(ctx, i, propertyName, &sourceLen);
if (sourceLen > 0)
{
retVal = ILibMemory_SmartAllocate(sourceLen);
retVal = ILibMemory_SmartAllocate(sourceLen+1);
memcpy_s(retVal, sourceLen, source, sourceLen);
if (bufferLen != NULL) { *bufferLen = sourceLen; }
}
@@ -786,6 +786,7 @@ void Duktape_SafeDestroyHeap(duk_context *ctx)
duk_set_top(ctx, top);
}
duk_require_stack(ctx, 2 * DUK_API_ENTRY_STACK);
duk_destroy_heap(ctx);
if (ctxd->fakechain != 0 && ctxd->chain != NULL)