From 1aa67e7a75ac21d15780d6aaab65a2c0f6f65198 Mon Sep 17 00:00:00 2001 From: Ben Harris Date: Mon, 13 Feb 2023 11:13:03 +0000 Subject: [PATCH] Remember to free the numcolours array from Pattern's drawstate --- pattern.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pattern.c b/pattern.c index 68862df..1342cb6 100644 --- a/pattern.c +++ b/pattern.c @@ -1738,6 +1738,7 @@ static game_drawstate *game_new_drawstate(drawing *dr, const game_state *state) static void game_free_drawstate(drawing *dr, game_drawstate *ds) { sfree(ds->visible); + sfree(ds->numcolours); sfree(ds->strbuf); sfree(ds); }