From cb3007dad80e24f6f191d12ded7219e106c23504 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 9 Feb 2020 15:28:51 +0100 Subject: okok --- src/ft_click_close.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ft_click_close.c b/src/ft_click_close.c index 0d2b549..84f5270 100644 --- a/src/ft_click_close.c +++ b/src/ft_click_close.c @@ -20,5 +20,7 @@ int ft_click_close(int keycode, t_cub *clist) { ft_printf("Button [%d] pressed\n", keycode); - return (ft_exit(0, clist)); + clist->wlist->inited = 0; + ft_free_lists(clist); + return (exit(0)); } -- cgit v1.2.3