call js_std_free_handlers() in the code generated by qjsc (github issue #96)

This commit is contained in:
Fabrice Bellard
2023-12-22 11:07:00 +01:00
parent e9290401ce
commit 9b587c461b
2 changed files with 4 additions and 4 deletions

1
qjsc.c
View File

@@ -330,6 +330,7 @@ static const char main_c_template1[] =
static const char main_c_template2[] =
" js_std_loop(ctx);\n"
" js_std_free_handlers(rt);\n"
" JS_FreeContext(ctx);\n"
" JS_FreeRuntime(rt);\n"
" return 0;\n"