mirror of
https://github.com/bellard/quickjs.git
synced 2024-11-22 13:48:11 +08:00
call js_std_free_handlers() in the code generated by qjsc (github issue #96)
This commit is contained in:
parent
e9290401ce
commit
9b587c461b
7
Makefile
7
Makefile
@ -155,10 +155,9 @@ endif
|
|||||||
|
|
||||||
# examples
|
# examples
|
||||||
ifeq ($(CROSS_PREFIX),)
|
ifeq ($(CROSS_PREFIX),)
|
||||||
ifdef CONFIG_ASAN
|
PROGS+=examples/hello
|
||||||
PROGS+=
|
ifndef CONFIG_ASAN
|
||||||
else
|
PROGS+=examples/hello_module examples/test_fib
|
||||||
PROGS+=examples/hello examples/hello_module examples/test_fib
|
|
||||||
ifndef CONFIG_DARWIN
|
ifndef CONFIG_DARWIN
|
||||||
PROGS+=examples/fib.so examples/point.so
|
PROGS+=examples/fib.so examples/point.so
|
||||||
endif
|
endif
|
||||||
|
1
qjsc.c
1
qjsc.c
@ -330,6 +330,7 @@ static const char main_c_template1[] =
|
|||||||
|
|
||||||
static const char main_c_template2[] =
|
static const char main_c_template2[] =
|
||||||
" js_std_loop(ctx);\n"
|
" js_std_loop(ctx);\n"
|
||||||
|
" js_std_free_handlers(rt);\n"
|
||||||
" JS_FreeContext(ctx);\n"
|
" JS_FreeContext(ctx);\n"
|
||||||
" JS_FreeRuntime(rt);\n"
|
" JS_FreeRuntime(rt);\n"
|
||||||
" return 0;\n"
|
" return 0;\n"
|
||||||
|
Loading…
Reference in New Issue
Block a user