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:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user