aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/main.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 84d7e23..6927b6d 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2,14 +2,17 @@
#include <mlx.h>
#include <stdlib.h>
-int main(void) {
+int
+ main(void)
+{
void *win;
void *winptr;
win = mlx_init();
winptr = (void*)malloc(800 * 600);
winptr = mlx_new_window(win, 800, 600, "Cub3d");
- free(win);
+ mlx_loop(win);
free(winptr);
+ free(win);
return (0);
}