From 5e2a1b6424769723802a30e8911026a9fa6ea3f5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 28 May 2022 18:52:10 +0200 Subject: [PATCH] fixed a 'pointer used after free' warning --- cell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cell.cpp b/cell.cpp index f998b160..904fb3ae 100644 --- a/cell.cpp +++ b/cell.cpp @@ -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;