aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_exit.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 19:10:57 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-14 19:10:57 +0100
commit72454c55ab9075fc5f52d8af8c85de74e807dcd2 (patch)
treef3cdfa274c4a719da19435cacfd58d095f5b9b6b /src/ft_exit.c
parentPerfect but leaks (diff)
download42-cub3d-72454c55ab9075fc5f52d8af8c85de74e807dcd2.tar.gz
42-cub3d-72454c55ab9075fc5f52d8af8c85de74e807dcd2.tar.bz2
42-cub3d-72454c55ab9075fc5f52d8af8c85de74e807dcd2.tar.xz
42-cub3d-72454c55ab9075fc5f52d8af8c85de74e807dcd2.tar.zst
42-cub3d-72454c55ab9075fc5f52d8af8c85de74e807dcd2.zip
In progress
Diffstat (limited to 'src/ft_exit.c')
-rw-r--r--src/ft_exit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ft_exit.c b/src/ft_exit.c
index e7b344e..f1da643 100644
--- a/src/ft_exit.c
+++ b/src/ft_exit.c
@@ -69,6 +69,7 @@ static void
mlx_destroy_image(clist->wlist.wlx, clist->tlist[7].img);
if (clist->mlist.istraps && clist->tlist[15].img)
mlx_destroy_image(clist->wlist.wlx, clist->tlist[15].img);
+ ft_del_extra_sprites(clist);
}
static void
@@ -98,7 +99,6 @@ int
{
if (clist->walltexgood)
ft_del_tex(clist);
- ft_del_extra_sprites(clist);
if (clist->wlist.inited)
{
if (FT_OS == 1)