aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c8
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);
}