From 65313b6bc8aa66feeb5590a05e1b15099be1c7ff Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Sat, 21 Mar 2020 20:14:18 +0100 Subject: Freed leaks --- src/ft_exit.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index b9e68d0..477a0ec 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -73,6 +73,10 @@ static void ft_memdel((void*)&clist->sfx[1].cmd_alt); ft_memdel((void*)&clist->sfx[3].cmd_alt); ft_free_sprites(clist->mlist.sprite_path); + i = -1; + while (++i < 2) + ft_memdel((void*)&clist->weaps[i]); + ft_memdel((void*)&clist->weaps); if (!clist->wlist.inited) ft_memdel((void*)&clist->wlist.winptr); } -- cgit v1.2.3