aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_warp_level.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_warp_level.c')
-rw-r--r--src/ft_warp_level.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ft_warp_level.c b/src/ft_warp_level.c
index 93c47a4..009e544 100644
--- a/src/ft_warp_level.c
+++ b/src/ft_warp_level.c
@@ -23,6 +23,8 @@
static void
ft_del_map(t_map *ml)
{
+ int8_t i;
+
ft_memdel((void*)&ml->filename);
ft_memdel((void*)&ml->no_tex_path);
ft_memdel((void*)&ml->so_tex_path);
@@ -39,6 +41,10 @@ static void
ft_memdel((void*)&ml->mapl);
ft_free_sprites(ml->sprite_path);
ft_free_words(ml->map);
+ i = -1;
+ while (++i < 2)
+ ft_memdel((void*)&clist->weaps[i]);
+ ft_memdel((void*)&clist->weaps);
}
static void