aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_click_close.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 15:32:15 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-02-09 15:32:15 +0100
commit52430117908df7f5ee5fa3894b89c67e819bafbd (patch)
tree16e9d0128894b6afb639f69b0bfd2258c7a6905f /src/ft_click_close.c
parentokok (diff)
download42-cub3d-52430117908df7f5ee5fa3894b89c67e819bafbd.tar.gz
42-cub3d-52430117908df7f5ee5fa3894b89c67e819bafbd.tar.bz2
42-cub3d-52430117908df7f5ee5fa3894b89c67e819bafbd.tar.xz
42-cub3d-52430117908df7f5ee5fa3894b89c67e819bafbd.tar.zst
42-cub3d-52430117908df7f5ee5fa3894b89c67e819bafbd.zip
Exits just fine but must be leaking a damn lot
Diffstat (limited to 'src/ft_click_close.c')
-rw-r--r--src/ft_click_close.c6
1 files changed, 3 insertions, 3 deletions
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);
}