mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 23:04:49 +00:00
Fix list refcount dec
This commit is contained in:
parent
51e1cd61dd
commit
9e9552186e
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue