aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_death_screen.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 19:34:06 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 19:34:06 +0100
commitee13e877d77ba62b28b7af510c7cc729987044ce (patch)
tree0c857982c626c87a9142cdf6d74e731676318433 /src/ft_death_screen.c
parentIn progress (diff)
download42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.gz
42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.bz2
42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.xz
42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.tar.zst
42-cub3d-ee13e877d77ba62b28b7af510c7cc729987044ce.zip
Elementary school math into leaks fix
Diffstat (limited to 'src/ft_death_screen.c')
-rw-r--r--src/ft_death_screen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_death_screen.c b/src/ft_death_screen.c
index 16d75d5..cc299d1 100644
--- a/src/ft_death_screen.c
+++ b/src/ft_death_screen.c
@@ -71,7 +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); */
+ mlx_destroy_image(cl->wlist.wlx, cl->img.img);
+ mlx_destroy_image(cl->wlist.wlx, cl->death_screen.img);
ft_death_hooks(&cl->wlist, cl);
}