patch: fix gc

This commit is contained in:
Emil J. Tywoniak 2026-05-26 12:22:38 +02:00
parent 698f6e05c0
commit 688d256edc
1 changed files with 1 additions and 0 deletions

View File

@ -94,6 +94,7 @@ void Patch::gc(Cell* old_cell) {
}
}
}
old_cell->module->remove(old_cell);
for (auto input : inputs)
gc(input);
}