mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Untangle: fix a memory leak.
Spotted by Leak Sanitiser while re-testing after the previous commits: the separately allocated 'crosses' array in game_state was never freed.
This commit is contained in:
@ -966,6 +966,9 @@ static void free_game(game_state *state)
|
|||||||
freetree234(state->graph->edges);
|
freetree234(state->graph->edges);
|
||||||
sfree(state->graph);
|
sfree(state->graph);
|
||||||
}
|
}
|
||||||
|
#ifndef EDITOR
|
||||||
|
sfree(state->crosses);
|
||||||
|
#endif
|
||||||
sfree(state->pts);
|
sfree(state->pts);
|
||||||
sfree(state);
|
sfree(state);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user