mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Use a dedicated free function to free dsfs.
No functional change: currently, this just wraps the previous sfree call.
This commit is contained in:
@ -1820,8 +1820,8 @@ static game_state *dup_game(const game_state *state)
|
||||
static void free_game(game_state *state)
|
||||
{
|
||||
if (--state->solver->refcount <= 0) {
|
||||
sfree(state->solver->dsf);
|
||||
sfree(state->solver->tmpdsf);
|
||||
dsf_free(state->solver->dsf);
|
||||
dsf_free(state->solver->tmpdsf);
|
||||
sfree(state->solver);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user