diff options
author | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-01 20:45:50 +0100 |
---|---|---|
committer | Rudy Bousset <rbousset@z2r5p2.le-101.fr> | 2020-03-01 20:45:50 +0100 |
commit | 2cfddcc1f58e3653142e25a4d9a80177044a8c53 (patch) | |
tree | 78192165565be253b039060b476797a20c35ef96 /src/ft_exit.c | |
parent | Better h (diff) | |
download | 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.gz 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.bz2 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.xz 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.tar.zst 42-cub3d-2cfddcc1f58e3653142e25a4d9a80177044a8c53.zip |
in progress
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r-- | src/ft_exit.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c index dec46b1..1c4a1a8 100644 --- a/src/ft_exit.c +++ b/src/ft_exit.c @@ -15,7 +15,7 @@ #include <mlx.h> #include <stddef.h> #include <stdlib.h> -#include <inttypes.h> +#include <stdint.h> static void ft_free_lists(t_cub *clist) @@ -33,7 +33,7 @@ static void ft_memdel((void**)&clist->plist); if (!clist->wlist->inited) ft_memdel((void**)&clist->wlist->winptr); - ft_memdel((void**)&clist->wlist->wlx); + /* ft_memdel((void**)&clist->wlist->wlx); */ ft_memdel((void**)&clist->wlist); ft_memdel((void**)&clist); } @@ -41,6 +41,9 @@ static void int ft_exit(uint8_t exit_code, t_cub *clist) { + /* uint8_t i; */ + + /* i = 0; */ if (clist->walltexgood) { if (clist->tlist[0].img) @@ -77,6 +80,7 @@ int } ft_free_lists(clist); ft_printf("Exiting program\n"); + while (1); exit(exit_code); return (0); } |