diff options
-rw-r--r-- | src/ft_click_close.c | 4 |
1 files changed, 3 insertions, 1 deletions
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)); } |