mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-18 15:31:25 +00:00
Fix a few more mistakes from slices
This commit is contained in:
@ -1031,7 +1031,7 @@ impl<'a, 'b> SubContext<'a, 'b> {
|
||||
", i = i, func = func, arg = name));
|
||||
pass(&format!("ptr{}", i));
|
||||
pass(&format!("len{}", i));
|
||||
if ty.owned {
|
||||
if !ty.owned {
|
||||
destructors.push_str(&format!("\n\
|
||||
wasm.__wbindgen_free(ptr{i}, len{i});\n\
|
||||
", i = i));
|
||||
|
Reference in New Issue
Block a user