aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_click_close.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 15:28:51 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 15:28:51 +0100
commitcb3007dad80e24f6f191d12ded7219e106c23504 (patch)
tree5a89c08f9454acfc22046b9193ed7770bac59238 /src/ft_click_close.c
parentCan't find the perfect event (diff)
download42-cub3d-cb3007dad80e24f6f191d12ded7219e106c23504.tar.gz
42-cub3d-cb3007dad80e24f6f191d12ded7219e106c23504.tar.bz2
42-cub3d-cb3007dad80e24f6f191d12ded7219e106c23504.tar.xz
42-cub3d-cb3007dad80e24f6f191d12ded7219e106c23504.tar.zst
42-cub3d-cb3007dad80e24f6f191d12ded7219e106c23504.zip
okok
Diffstat (limited to 'src/ft_click_close.c')
-rw-r--r--src/ft_click_close.c4
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));
}