From 8d7f65c1c04f7124f1a34062be377fdbe721c46a Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 2 Feb 2020 17:05:54 +0100 Subject: Correct ft_memdel --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 8c4ecb9..8c8aad8 100644 --- a/src/main.c +++ b/src/main.c @@ -9,13 +9,13 @@ int if (!(clist = ft_init_cub())) { - ft_memdel(clist); + ft_memdel((void**)&clist); return (1); } if (!(clist->wlist = ft_init_win())) { - ft_memdel(clist->wlist); - ft_memdel(clist); + ft_memdel((void**)&clist->wlist); + ft_memdel((void**)&clist); return (1); } ft_parse_map("map/map_one.cub", clist); -- cgit v1.2.3