From e6d5e3c4b7f17731f38b7048ff74012360bef200 Mon Sep 17 00:00:00 2001 From: Louis Moureaux Date: Sun, 17 Mar 2024 04:51:11 +0100 Subject: [PATCH] Fix an alloc-dealloc mismatch in tile links handling --- client/views/view_map_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/views/view_map_common.cpp b/client/views/view_map_common.cpp index c65e5b7278..138feaea41 100644 --- a/client/views/view_map_common.cpp +++ b/client/views/view_map_common.cpp @@ -2355,7 +2355,7 @@ static struct link_mark *link_mark_new(enum text_link_type type, int id, /** Remove a link mark. */ -static void link_mark_destroy(struct link_mark *pmark) { free(pmark); } +static void link_mark_destroy(struct link_mark *pmark) { delete pmark; } /** Returns the location of the pointed mark.