diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-28 22:52:40 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-02-28 22:52:40 +0100 |
commit | 50f1133b795a6f353b8dc53cdbe90ae0441e1513 (patch) | |
tree | fea13753ab7c3fdcaac23b2b55ef7a347b7a959e /src/ft_exit.c | |
parent | Added useful comment (diff) | |
download | 42-cub3d-50f1133b795a6f353b8dc53cdbe90ae0441e1513.tar.gz 42-cub3d-50f1133b795a6f353b8dc53cdbe90ae0441e1513.tar.bz2 42-cub3d-50f1133b795a6f353b8dc53cdbe90ae0441e1513.tar.xz 42-cub3d-50f1133b795a6f353b8dc53cdbe90ae0441e1513.tar.zst 42-cub3d-50f1133b795a6f353b8dc53cdbe90ae0441e1513.zip |
All works but one thing is not ok
Diffstat (limited to 'src/ft_exit.c')
-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); |