aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:42:48 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-15 19:42:48 +0100
commit75f54cd49e5b9942678d2b8a8137ca1110a785f5 (patch)
tree9abbe2b12a0d1cc016bc3bfa5ce95f15d6cd625d /src/ft_exit.c
parentRevert (diff)
download42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.gz
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.bz2
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.xz
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.tar.zst
42-cub3d-75f54cd49e5b9942678d2b8a8137ca1110a785f5.zip
Valgrind errors fix
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index f1da643..80fd734 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -42,10 +42,12 @@ static void
ft_free_words(clist->sfx.death);
ft_free_words(clist->sfx.pain_one);
ft_free_words(clist->sfx.pain_two);
+ ft_free_words(clist->sfx.new_lvl);
ft_free_words(clist->sfx.trap);
ft_free_sprites(clist->mlist.sprite_path);
if (!clist->wlist.inited)
ft_memdel((void**)&clist->wlist.winptr);
+ ft_memdel((void**)&clist);
}
static void