diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-28 01:17:07 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-28 01:17:07 +0100 |
commit | 130ef435ac41b4af764937b615d37c77133599fb (patch) | |
tree | fcbdf370db9da42fec7befa9d1e189a64345c565 /src | |
parent | Okkokokokokok (diff) | |
download | 42-cub3d-130ef435ac41b4af764937b615d37c77133599fb.tar.gz 42-cub3d-130ef435ac41b4af764937b615d37c77133599fb.tar.bz2 42-cub3d-130ef435ac41b4af764937b615d37c77133599fb.tar.xz 42-cub3d-130ef435ac41b4af764937b615d37c77133599fb.tar.zst 42-cub3d-130ef435ac41b4af764937b615d37c77133599fb.zip |
Now destroying window
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_exit.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index 925bbd5..010c0d1 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -1,5 +1,6 @@ #include <libft.h> #include <cub3d.h> +#include <mlx.h> #include <stdlib.h> #include <inttypes.h> @@ -12,7 +13,7 @@ ft_free_lists(t_cub *clist) 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->winptr); */ ft_memdel(clist->wlist->wlx); ft_memdel(clist->wlist); ft_memdel(clist); @@ -21,6 +22,7 @@ ft_free_lists(t_cub *clist) int ft_exit(uint8_t exit_code, t_cub *clist) { + mlx_destroy_window(clist->wlist->wlx, clist->wlist->winptr); ft_printf("Exiting program\n"); if (exit_code < 0 || exit_code > 0) ft_printf("Exit code: %hhu\n", exit_code); |