Fix a few more mistakes from slices

This commit is contained in:
Alex Crichton
2018-02-16 19:19:31 -08:00
parent 0970fa2998
commit 9e7a4e7e60
3 changed files with 4 additions and 4 deletions

View File

@ -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));