From 25333a9167fb26ae3850cb891facd024248e2ab2 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 24 Apr 2020 18:23:42 +0200 Subject: Back to clang --- src/ft_exit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3