fix(wasm): delete var_i32_type after initializing global stack
pointer value
This commit is contained in:
parent
eb5ad7eb26
commit
0d914c860a
1 changed files with 1 additions and 0 deletions
|
|
@ -754,6 +754,7 @@ TSWasmStore *ts_wasm_store_new(TSWasmEngine *engine, TSWasmError *wasm_error) {
|
|||
wasmtime_val_t stack_pointer_value = WASM_I32_VAL(0);
|
||||
wasmtime_global_t stack_pointer_global;
|
||||
error = wasmtime_global_new(context, var_i32_type, &stack_pointer_value, &stack_pointer_global);
|
||||
wasm_globaltype_delete(var_i32_type);
|
||||
ts_assert(!error);
|
||||
|
||||
*self = (TSWasmStore) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue