Use a dedicated free function to free dsfs.

No functional change: currently, this just wraps the previous sfree
call.
This commit is contained in:
Simon Tatham
2023-04-20 13:35:58 +01:00
parent 16f997d34c
commit bb561ee3b1
24 changed files with 70 additions and 64 deletions

View File

@ -824,7 +824,7 @@ static void generate_board(int w, int h, int *rtx, int *rty, int *minmoves,
}
}
sfree(dsf);
dsf_free(dsf);
sfree(list);
sfree(tried_merge);
sfree(board2);
@ -2260,7 +2260,7 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
status_bar(dr, statusbuf);
}
sfree(dsf);
dsf_free(dsf);
sfree(board);
}