diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-09-01 11:59:51 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-09-01 11:59:51 +0000 |
| commit | 04e26aaa7b04af90d8d42e77d3d9ccc1dade678c (patch) | |
| tree | a7f73f2565c8c699e14850c96585e1a8dafa56df | |
| parent | 94b36c11e00bb740813506b0d3911f90f1829941 (diff) | |
| download | puzzles-04e26aaa7b04af90d8d42e77d3d9ccc1dade678c.zip puzzles-04e26aaa7b04af90d8d42e77d3d9ccc1dade678c.tar.gz puzzles-04e26aaa7b04af90d8d42e77d3d9ccc1dade678c.tar.bz2 puzzles-04e26aaa7b04af90d8d42e77d3d9ccc1dade678c.tar.xz | |
James H's memory leak fixes to Inertia.
[originally from svn r6255]
| -rw-r--r-- | inertia.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -221,6 +221,9 @@ static struct solver_scratch *new_scratch(int w, int h) static void free_scratch(struct solver_scratch *sc) { + sfree(sc->reachable_from); + sfree(sc->reachable_to); + sfree(sc->positions); sfree(sc); } @@ -940,6 +943,8 @@ static game_drawstate *game_new_drawstate(drawing *dr, game_state *state) static void game_free_drawstate(drawing *dr, game_drawstate *ds) { + if (ds->player_background) + blitter_free(dr, ds->player_background); sfree(ds->grid); sfree(ds); } |