aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_key_events.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 00:09:11 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-01-24 00:09:11 +0100
commitfbd69257b509d3374573282ee08f5d9fc9ed4095 (patch)
tree28b9ab225e910a8ae279623b08152e310431242c /src/ft_key_events.c
parentNice and working (diff)
download42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.gz
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.bz2
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.xz
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.tar.zst
42-cub3d-fbd69257b509d3374573282ee08f5d9fc9ed4095.zip
It ain't much but it's honest work
Diffstat (limited to 'src/ft_key_events.c')
-rw-r--r--src/ft_key_events.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c
index 6702988..088df54 100644
--- a/src/ft_key_events.c
+++ b/src/ft_key_events.c
@@ -44,8 +44,8 @@ ft_key_event(int keycode, void *param)
(keycode <= 3) ? ((*fun_ptr[keycode])()) : 0;
if (keycode == 53)
{
- ft_memdel(((t_win*)param)->wlx);
ft_memdel(((t_win*)param)->winptr);
+ ft_memdel(((t_win*)param)->wlx);
ft_memdel((t_win*)param);
ft_exit(0);
}