mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Remember to free the actual_board array in Mosaic
This commit is contained in:
1
mosaic.c
1
mosaic.c
@ -925,6 +925,7 @@ static void free_game(game_state *state)
|
|||||||
sfree(state->cells_contents);
|
sfree(state->cells_contents);
|
||||||
state->cells_contents = NULL;
|
state->cells_contents = NULL;
|
||||||
if (state->board->references <= 1) {
|
if (state->board->references <= 1) {
|
||||||
|
sfree(state->board->actual_board);
|
||||||
sfree(state->board);
|
sfree(state->board);
|
||||||
state->board = NULL;
|
state->board = NULL;
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user