diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_key_events.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/ft_key_events.c b/src/ft_key_events.c index 74d6346..8c8167a 100644 --- a/src/ft_key_events.c +++ b/src/ft_key_events.c @@ -46,11 +46,6 @@ ft_key_event(int keycode, void *param) (keycode == FT_D_KEY) ? (keycode = 3) : 0; (keycode <= 3) ? ((*fun_ptr[keycode])()) : 0; if (keycode == FT_ESC_KEY) - { - ft_memdel(((t_win*)param)->winptr); - ft_memdel(((t_win*)param)->wlx); - ft_memdel((t_win*)param); - ft_exit(0); - } + ft_exit(0, ((t_win*)param)); return (0); } |