mirror of
https://github.com/janet-lang/janet
synced 2025-11-18 00:05:13 +00:00
Fix ev thread swallowing error in some case.
This commit is contained in:
@@ -1520,6 +1520,7 @@ int janet_init(void) {
|
||||
janet_vm.root_capacity = 0;
|
||||
|
||||
/* Scratch memory */
|
||||
janet_vm.user = NULL;
|
||||
janet_vm.scratch_mem = NULL;
|
||||
janet_vm.scratch_len = 0;
|
||||
janet_vm.scratch_cap = 0;
|
||||
@@ -1579,6 +1580,7 @@ void janet_deinit(void) {
|
||||
janet_vm.abstract_registry = NULL;
|
||||
janet_vm.core_env = NULL;
|
||||
janet_vm.top_dyns = NULL;
|
||||
janet_vm.user = NULL;
|
||||
janet_free(janet_vm.traversal_base);
|
||||
janet_vm.fiber = NULL;
|
||||
janet_vm.root_fiber = NULL;
|
||||
|
||||
Reference in New Issue
Block a user