mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Remember to free the numcolours array from Pattern's drawstate
This commit is contained in:
@ -1738,6 +1738,7 @@ static game_drawstate *game_new_drawstate(drawing *dr, const game_state *state)
|
|||||||
static void game_free_drawstate(drawing *dr, game_drawstate *ds)
|
static void game_free_drawstate(drawing *dr, game_drawstate *ds)
|
||||||
{
|
{
|
||||||
sfree(ds->visible);
|
sfree(ds->visible);
|
||||||
|
sfree(ds->numcolours);
|
||||||
sfree(ds->strbuf);
|
sfree(ds->strbuf);
|
||||||
sfree(ds);
|
sfree(ds);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user