fix: Fixed memory leak for the door texture

This commit is contained in:
Theo Champion 2025-10-01 13:58:19 +02:00
parent 47ffb17047
commit 13b1f7a88c

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */ /* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/18 13:05:31 by kcolin #+# #+# */ /* Created: 2025/08/18 13:05:31 by kcolin #+# #+# */
/* Updated: 2025/09/22 17:18:55 by tchampio ### ########.fr */ /* Updated: 2025/10/01 13:57:48 by tchampio ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -43,6 +43,7 @@ void destroy_textures(t_cub3d_data *data)
i = 0; i = 0;
while (i < 6) while (i < 6)
destroy_texture(data, data->barricades_texture[i++]); destroy_texture(data, data->barricades_texture[i++]);
destroy_texture(data, data->door_texture);
} }
void destroy_sprites(t_cub3d_data *data) void destroy_sprites(t_cub3d_data *data)