Skip to content

Commit 2b6827e

Browse files
committed
getting back into Onyx development!
Minor bugfix with calling `run_wasm` twice
1 parent 0739f71 commit 2b6827e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

compiler/src/wasm_runtime.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -461,6 +461,14 @@ static void cleanup_wasm_objects() {
461461
if (wasm_module) wasm_module_delete(wasm_module);
462462
if (wasm_store) wasm_store_delete(wasm_store);
463463
if (wasm_engine) wasm_engine_delete(wasm_engine);
464+
wasm_extern_vec_delete(&wasm_imports);
465+
466+
wasm_config = NULL;
467+
wasm_instance = NULL;
468+
wasm_module = NULL;
469+
wasm_store = NULL;
470+
wasm_engine = NULL;
471+
wasm_memory = NULL;
464472
}
465473

466474
static wasm_trap_t *__error_on_call(void *env, const wasm_val_vec_t *args, wasm_val_vec_t *results) {

0 commit comments

Comments
 (0)