aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 4ed318c..3ec26ad 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -73,7 +73,8 @@ int
ft_del_tex(clist);
if (clist->wlist.inited)
{
- mlx_destroy_image(clist->wlist.wlx, clist->img.img);
+ if (FT_OS == 1)
+ mlx_destroy_image(clist->wlist.wlx, clist->img.img);
mlx_destroy_window(clist->wlist.wlx, clist->wlist.winptr);
clist->wlist.winptr = NULL;
}