forgot an unmount case

This commit is contained in:
2026-04-07 00:07:07 +02:00
parent b5b9fe4018
commit a89ddb8e39

View File

@@ -1212,6 +1212,7 @@ void nn_destroyComputer(nn_Computer *computer) {
nn_dropValue(computer->callstack[i]);
}
for(nn_ComponentEntry *c = nn_hashIterate(&computer->components, NULL); c != NULL; c = nn_hashIterate(&computer->components, c)) {
nn_signalComponent(c->comp, computer, NN_CSIGUNMOUNTED);
nn_dropComponent(c->comp);
}
for(size_t i = 0; i < computer->signalCount; i++) {