From 50f1133b795a6f353b8dc53cdbe90ae0441e1513 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 28 Feb 2020 22:52:40 +0100 Subject: All works but one thing is not ok --- src/ft_exit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_exit.c') 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); -- cgit v1.2.3