diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_exit.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 83e4b2e..6457191 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -48,6 +48,8 @@ int mlx_destroy_image(clist->wlist->wlx, clist->tlist[2].img); mlx_destroy_image(clist->wlist->wlx, clist->tlist[3].img); mlx_destroy_image(clist->wlist->wlx, clist->tlist[4].img); + if (clist->mlist->isnlvl) + mlx_destroy_image(clist->wlist->wlx, clist->tlist[5].img); mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr); } ft_free_lists(clist); |