From fbc52949004a067a5c2cfefae1ff3415dbe04a96 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 18:51:30 +0100 Subject: In progress --- src/ft_exit.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index d4b69ba..53af7f9 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -33,6 +33,7 @@ static void ft_memdel((void**)&clist->wlist->winptr); ft_memdel((void**)&clist->wlist->wlx); ft_memdel((void**)&clist->wlist); + ft_memdel((void**)&clist->errmsg); ft_memdel((void**)&clist); } -- cgit v1.2.3 From 030fe8c3316d1e1f5f3dea81c3fffd8e00c16afa Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sat, 15 Feb 2020 20:29:21 +0100 Subject: Work in progress, res now --- src/ft_exit.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/ft_exit.c') diff --git a/src/ft_exit.c b/src/ft_exit.c index 53af7f9..f0a94a3 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -33,7 +33,6 @@ static void ft_memdel((void**)&clist->wlist->winptr); ft_memdel((void**)&clist->wlist->wlx); ft_memdel((void**)&clist->wlist); - ft_memdel((void**)&clist->errmsg); ft_memdel((void**)&clist); } @@ -44,8 +43,6 @@ int mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr); ft_free_lists(clist); ft_printf("Exiting program\n"); - if (exit_code < 0 || exit_code > 0) - ft_printf("Exit code: %hhu\n", exit_code); exit(exit_code); return (0); } -- cgit v1.2.3