From 75f54cd49e5b9942678d2b8a8137ca1110a785f5 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sun, 15 Mar 2020 19:42:48 +0100 Subject: Valgrind errors fix --- src/ft_exit.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/ft_exit.c') 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 -- cgit v1.2.3