Fix two memory leaks reported by Tiago Dionizio in recent Loopy
[sgt/puzzles] / loopy.c
diff --git a/loopy.c b/loopy.c
index 6e97acd..43e96a7 100644 (file)
--- a/loopy.c
+++ b/loopy.c
@@ -917,6 +917,8 @@ static game_drawstate *game_new_drawstate(drawing *dr, game_state *state)
 
 static void game_free_drawstate(drawing *dr, game_drawstate *ds)
 {
+    sfree(ds->textx);
+    sfree(ds->texty);
     sfree(ds->clue_error);
     sfree(ds->clue_satisfied);
     sfree(ds->lines);