aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 15:51:57 +0100
committerRudy Bousset <rbousset@z2r4p3.le-101.fr>2020-01-23 15:51:57 +0100
commit68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf (patch)
tree34ce97a1024b3655d9a305e9e92b0e97a56d4f17 /src
parentRenamed minilibx to mlx (diff)
download42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.gz
42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.bz2
42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.xz
42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.tar.zst
42-cub3d-68a1ae93add0fd6ace9a7cd60bb7090b7b5bbfdf.zip
Trying to close
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);
}