mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -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:
@ -1817,7 +1817,7 @@ static solver_ctx *new_solver(game_state *state)
|
||||
static void free_solver(solver_ctx *sctx)
|
||||
{
|
||||
sfree(sctx->scratch);
|
||||
sfree(sctx->dsf);
|
||||
dsf_free(sctx->dsf);
|
||||
sfree(sctx->iscratch);
|
||||
sfree(sctx);
|
||||
}
|
||||
@ -3240,7 +3240,7 @@ static bool check_complete(const game_state *state, int *dsf, int *colours)
|
||||
|
||||
sfree(sqdata);
|
||||
if (free_dsf)
|
||||
sfree(dsf);
|
||||
dsf_free(dsf);
|
||||
|
||||
return ret;
|
||||
}
|
||||
@ -4095,7 +4095,7 @@ static void game_print(drawing *dr, const game_state *state, int sz)
|
||||
black : white), black);
|
||||
}
|
||||
|
||||
sfree(dsf);
|
||||
dsf_free(dsf);
|
||||
sfree(colours);
|
||||
sfree(coords);
|
||||
}
|
||||
|
Reference in New Issue
Block a user