Fix list refcount dec

This commit is contained in:
Brendan Hansknecht 2020-09-27 10:18:01 -07:00
parent 51e1cd61dd
commit 9e9552186e

View file

@ -138,10 +138,9 @@ fn decrement_refcount_builtin<'a, 'ctx, 'env>(
}
if let MemoryMode::Refcounted = memory_mode {
build_inc_list(env, layout_ids, layout, wrapper_struct);
}
build_dec_list(env, layout_ids, layout, wrapper_struct);
}
}
Set(element_layout) => {
if element_layout.contains_refcounted() {
// TODO decrement all values