aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 19:44:47 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-02 19:44:47 +0100
commit888e9d30cbf4efde17ee337b9b97f1960bbd74a2 (patch)
tree68790739652458a8242074983d28c846ceb3cb77 /src/ft_exit.c
parentMultilvl image leaks, rest is okok (diff)
download42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.gz
42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.bz2
42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.xz
42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.tar.zst
42-cub3d-888e9d30cbf4efde17ee337b9b97f1960bbd74a2.zip
Music is pretty bav
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index a19bff3..c022627 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -63,7 +63,7 @@ int
mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr);
clist->wlist->winptr = NULL;
}
- if (clist->mlist->ismusic)
+ if (clist->isoldmus && clist->wlist->inited)
{
pthread_cancel(clist->tid);
pthread_join(clist->tid, NULL);