aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 19:12:32 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-04-24 19:12:32 +0200
commit8725aebe8e8e8efd8781ec1b1637cb68f943b8bf (patch)
tree0d2eea782319d11ce30eadfce6cb301008889f63 /src/ft_exit.c
parentWorks but leaks (diff)
download42-cub3d-8725aebe8e8e8efd8781ec1b1637cb68f943b8bf.tar.gz
42-cub3d-8725aebe8e8e8efd8781ec1b1637cb68f943b8bf.tar.bz2
42-cub3d-8725aebe8e8e8efd8781ec1b1637cb68f943b8bf.tar.xz
42-cub3d-8725aebe8e8e8efd8781ec1b1637cb68f943b8bf.tar.zst
42-cub3d-8725aebe8e8e8efd8781ec1b1637cb68f943b8bf.zip
Fine
Diffstat (limited to '')
-rw-r--r--src/ft_exit.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index 8c85fdb..d9d9ef8 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -49,7 +49,7 @@ static void
if (FT_OS == 2)
{
pthread_cancel(clist->mtid);
- /* pthread_join(clist->mtid, NULL); */
+ pthread_join(clist->mtid, NULL);
}
else
system(FT_SND_TERM_CMD);
@@ -59,9 +59,8 @@ static void
{
if (FT_OS == 2)
{
+ pthread_mutex_destroy(&clist->sfx[i].mutex);
system(FT_SND_TERM_CMD);
- /* pthread_cancel(clist->sfx[i].tid); */
- pthread_join(clist->sfx[i].tid, NULL);
}
else
system(FT_SND_TERM_CMD);