aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c3
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);