mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-12-25 01:20:37 +00:00
fixed a 'pointer used after free' warning
This commit is contained in:
parent
cd4cc52768
commit
5e2a1b6424
2
cell.cpp
2
cell.cpp
@ -454,8 +454,8 @@ EX void clearcell(cell *c) {
|
|||||||
c->move(t)->move(c->c.spin(t)) = NULL;
|
c->move(t)->move(c->c.spin(t)) = NULL;
|
||||||
}
|
}
|
||||||
DEBB(DF_MEMORY, (format("DEL %p\n", hr::voidp(c))));
|
DEBB(DF_MEMORY, (format("DEL %p\n", hr::voidp(c))));
|
||||||
destroy_cell(c);
|
|
||||||
gp::delete_mapped(c);
|
gp::delete_mapped(c);
|
||||||
|
destroy_cell(c);
|
||||||
}
|
}
|
||||||
|
|
||||||
EX heptagon deletion_marker;
|
EX heptagon deletion_marker;
|
||||||
|
Loading…
Reference in New Issue
Block a user