1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-12-24 01:00:25 +00:00

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

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;