diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 18:55:43 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-14 18:55:43 +0100 |
commit | caa6cc5bc81278f446d852f73422af36c4c846c5 (patch) | |
tree | 58bcdba2ef530c6c1ab423209964b1b4e8877135 /src/ft_death_screen.c | |
parent | Can't death hook (diff) | |
download | 42-cub3d-caa6cc5bc81278f446d852f73422af36c4c846c5.tar.gz 42-cub3d-caa6cc5bc81278f446d852f73422af36c4c846c5.tar.bz2 42-cub3d-caa6cc5bc81278f446d852f73422af36c4c846c5.tar.xz 42-cub3d-caa6cc5bc81278f446d852f73422af36c4c846c5.tar.zst 42-cub3d-caa6cc5bc81278f446d852f73422af36c4c846c5.zip |
Perfect but leaks
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r-- | src/ft_death_screen.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/ft_death_screen.c b/src/ft_death_screen.c index 7afff98..16d75d5 100644 --- a/src/ft_death_screen.c +++ b/src/ft_death_screen.c @@ -71,8 +71,7 @@ void ft_calc_death_screen(cl); mlx_put_image_to_window(cl->wlist.wlx, cl->wlist.winptr, cl->img.img, 0, 0); + /* mlx_destroy_image(cl->wlist.wlx, cl->death_screen.img); */ + /* mlx_destroy_image(cl->wlist.wlx, cl->img.img); */ ft_death_hooks(&cl->wlist, cl); - sleep(8); - mlx_destroy_image(cl->wlist.wlx, cl->img.img); - mlx_destroy_image(cl->wlist.wlx, cl->death_screen.img); } |