From 68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Thu, 23 Jan 2020 15:51:57 +0100 Subject: Trying to close --- src/main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 #include -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); } -- cgit v1.2.3