shithub: puzzles

Download patch

ref: 1aa67e7a75ac21d15780d6aaab65a2c0f6f65198
parent: 19401e95e0a75577103e9c1a877611234a0d8ab5
author: Ben Harris <bjh21@bjh21.me.uk>
date: Mon Feb 13 06:13:03 EST 2023

Remember to free the numcolours array from Pattern's drawstate

--- a/pattern.c
+++ b/pattern.c
@@ -1738,6 +1738,7 @@
 static void game_free_drawstate(drawing *dr, game_drawstate *ds)
 {
     sfree(ds->visible);
+    sfree(ds->numcolours);
     sfree(ds->strbuf);
     sfree(ds);
 }