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

@ -1412,7 +1412,7 @@ static int solve_check_loop(game_state *state)
}
}
sfree(dsf);
dsf_free(dsf);
return did;
}
@ -1605,7 +1605,7 @@ static int tracks_solve(game_state *state, int diff, int *max_diff_out)
break;
}
sfree(sc->dsf);
dsf_free(sc->dsf);
if (max_diff_out)
*max_diff_out = max_diff;
@ -1999,7 +1999,7 @@ static bool check_completion(game_state *state, bool mark)
state->completed = ret;
if (ret) set_flash_data(state);
}
sfree(dsf);
dsf_free(dsf);
return ret;
}