fixed a 'pointer used after free' warning

This commit is contained in:
Zeno Rogue 2022-05-28 18:52:10 +02:00
parent cd4cc52768
commit 5e2a1b6424
1 changed files with 1 additions and 1 deletions

View File

@ -454,8 +454,8 @@ EX void clearcell(cell *c) {
c->move(t)->move(c->c.spin(t)) = NULL;
}
DEBB(DF_MEMORY, (format("DEL %p\n", hr::voidp(c))));
destroy_cell(c);
gp::delete_mapped(c);
destroy_cell(c);
}
EX heptagon deletion_marker;