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:
@ -239,7 +239,7 @@ static struct solver_scratch *solver_scratch_new(int w, int h, int k)
|
||||
|
||||
static void solver_scratch_free(struct solver_scratch *sc)
|
||||
{
|
||||
sfree(sc->dsf);
|
||||
dsf_free(sc->dsf);
|
||||
sfree(sc->size);
|
||||
sfree(sc->contents);
|
||||
sfree(sc->disconnect);
|
||||
@ -615,7 +615,7 @@ static unsigned char *generate(int w, int h, int k, random_state *rs)
|
||||
retries = k*k; /* reset this counter, and continue */
|
||||
}
|
||||
|
||||
sfree(dsf);
|
||||
dsf_free(dsf);
|
||||
} while (m == 0);
|
||||
|
||||
sfree(gen_lock);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user