diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-24 18:23:42 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-24 18:23:42 +0200 |
commit | 25333a9167fb26ae3850cb891facd024248e2ab2 (patch) | |
tree | b0ce9f7f2b7c31936bc6116cf947ffc66157c198 /src | |
parent | You fucktard (diff) | |
download | 42-cub3d-25333a9167fb26ae3850cb891facd024248e2ab2.tar.gz 42-cub3d-25333a9167fb26ae3850cb891facd024248e2ab2.tar.bz2 42-cub3d-25333a9167fb26ae3850cb891facd024248e2ab2.tar.xz 42-cub3d-25333a9167fb26ae3850cb891facd024248e2ab2.tar.zst 42-cub3d-25333a9167fb26ae3850cb891facd024248e2ab2.zip |
Back to clang
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_exit.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 729dda7..17b7087 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -55,9 +55,8 @@ static void system(FT_SND_TERM_CMD); } i = -1; - while (++i < FT_TOTAL_SFX) + while (clist->wlist.inited && ++i < FT_TOTAL_SFX) { - pthread_mutex_destroy(&clist->sfx[i].mutex); if (FT_OS == 2) { pthread_cancel(clist->sfx[i].tid); |