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:
Simon Tatham
2024-09-27 12:51:34 +01:00
parent 3dbd97b60f
commit a9601a678a

View File

@ -966,6 +966,9 @@ static void free_game(game_state *state)
freetree234(state->graph->edges);
sfree(state->graph);
}
#ifndef EDITOR
sfree(state->crosses);
#endif
sfree(state->pts);
sfree(state);
}