Remember to free the actual_board array in Mosaic

This commit is contained in:
Ben Harris
2023-02-13 09:36:27 +00:00
parent bb31efdbc9
commit 0f20b72269

View File

@ -925,6 +925,7 @@ static void free_game(game_state *state)
sfree(state->cells_contents);
state->cells_contents = NULL;
if (state->board->references <= 1) {
sfree(state->board->actual_board);
sfree(state->board);
state->board = NULL;
} else {