aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2023-02-13 09:36:27 +0000
committerBen Harris <bjh21@bjh21.me.uk>2023-02-13 09:39:04 +0000
commit0f20b7226957a2fceff37a67b0d9874c7db3a7fc (patch)
tree86049b4ba13071501fc2e1135c7fb20b37a95efe
parentbb31efdbc91495a4385ca0afffa4c8bb8f564d7b (diff)
downloadpuzzles-0f20b7226957a2fceff37a67b0d9874c7db3a7fc.zip
puzzles-0f20b7226957a2fceff37a67b0d9874c7db3a7fc.tar.gz
puzzles-0f20b7226957a2fceff37a67b0d9874c7db3a7fc.tar.bz2
puzzles-0f20b7226957a2fceff37a67b0d9874c7db3a7fc.tar.xz
Remember to free the actual_board array in Mosaic
-rw-r--r--mosaic.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/mosaic.c b/mosaic.c
index f3a3216..842c211 100644
--- a/mosaic.c
+++ b/mosaic.c
@@ -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 {