diff options
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 14f1f2a..925bbd5 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -4,27 +4,27 @@ #include <inttypes.h> static void -ft_free_lists(t_win *wlist) +ft_free_lists(t_cub *clist) { - ft_memdel(wlist->clist->no_tex_path); - ft_memdel(wlist->clist->so_tex_path); - ft_memdel(wlist->clist->ea_tex_path); - ft_memdel(wlist->clist->we_tex_path); - ft_memdel(wlist->clist->sprite_path); - ft_free_words(wlist->clist->map, NULL); - ft_memdel(wlist->clist); - ft_memdel(wlist->winptr); - ft_memdel(wlist->wlx); - ft_memdel(wlist); + ft_memdel(clist->no_tex_path); + ft_memdel(clist->so_tex_path); + ft_memdel(clist->ea_tex_path); + ft_memdel(clist->we_tex_path); + ft_memdel(clist->sprite_path); + ft_free_words(clist->map, NULL); + ft_memdel(clist->wlist->winptr); + ft_memdel(clist->wlist->wlx); + ft_memdel(clist->wlist); + ft_memdel(clist); } int -ft_exit(uint8_t exit_code, t_win *wlist) +ft_exit(uint8_t exit_code, t_cub *clist) { ft_printf("Exiting program\n"); if (exit_code < 0 || exit_code > 0) ft_printf("Exit code: %hhu\n", exit_code); - ft_free_lists(wlist); + ft_free_lists(clist); exit(exit_code); return (0); } |