From 4bab5e531b4b49c9b41d2140dd570d05947e7c40 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Tue, 26 Apr 2011 13:44:27 +0000 Subject: Fix two memory leaks reported by Tiago Dionizio in recent Loopy development. [originally from svn r9163] --- loopy.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'loopy.c') diff --git a/loopy.c b/loopy.c index 6e97acd..43e96a7 100644 --- 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); -- cgit v1.1