From 52430117908df7f5ee5fa3894b89c67e819bafbd Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Sun, 9 Feb 2020 15:32:15 +0100 Subject: Exits just fine but must be leaking a damn lot --- src/ft_click_close.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/ft_click_close.c') diff --git a/src/ft_click_close.c b/src/ft_click_close.c index 84f5270..db3b2e2 100644 --- a/src/ft_click_close.c +++ b/src/ft_click_close.c @@ -19,8 +19,8 @@ int ft_click_close(int keycode, t_cub *clist) { + (void)clist; ft_printf("Button [%d] pressed\n", keycode); - clist->wlist->inited = 0; - ft_free_lists(clist); - return (exit(0)); + exit(0); + return (0); } -- cgit v1.2.3