shithub: puzzles

Download patch

ref: 493bf16ddbe2185664d6c3053f7891a9f232c75c
parent: 11b631ea870355306c4b1d03458bb3cea8f29188
author: Ben Harris <[email protected]>
date: Mon Feb 13 04:48:16 EST 2023

Remember to free the to_draw member from Net's drawstate

--- a/net.c
+++ b/net.c
@@ -2464,6 +2464,7 @@
 static void game_free_drawstate(drawing *dr, game_drawstate *ds)
 {
     sfree(ds->visible);
+    sfree(ds->to_draw);
     sfree(ds);
 }