chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix two memory leaks reported by Tiago Dionizio in recent Loopy
[sgt-puzzles.git]
/
loopy.c
diff --git
a/loopy.c
b/loopy.c
index 6e97acda48a521e69656a3e415c98ea7352d11a2..43e96a7fb7cb746898604db2733ddb02b176fea2 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);