1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-09 13:10:38 +00:00

update debugGC() to only call gc once instead of twice, because the context can get collected after the first call.

This commit is contained in:
Bryan Roe
2019-12-13 09:45:52 -08:00
parent 0a5c7fd8ba
commit d0edd23fd4

View File

@@ -1617,7 +1617,6 @@ void ILibDuktape_Polyfills_debugGC2(duk_context *ctx, void ** args, int argsLen)
{
if (g_displayFinalizerMessages) { printf("=> GC();\n"); }
duk_gc(ctx, 0);
duk_gc(ctx, 0);
}
duk_ret_t ILibDuktape_Polyfills_debugGC(duk_context *ctx)
{