fix: Fixed memory leak for shooting texture

This commit is contained in:
Theo Champion 2025-09-16 16:09:20 +02:00
parent ee56e2fdbd
commit 6cee6643e4

View file

@ -6,7 +6,7 @@
/* By: kcolin <kcolin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/08/18 13:05:31 by kcolin #+# #+# */
/* Updated: 2025/09/15 15:39:44 by tchampio ### ########.fr */
/* Updated: 2025/09/16 16:08:40 by tchampio ### ########.fr */
/* */
/* ************************************************************************** */
@ -80,4 +80,5 @@ void destroy_hud_textures(t_cub3d_data *data)
while (i < 3)
destroy_texture(data, data->perk_logos[i++]);
destroy_texture(data, data->player.weapon.texture);
destroy_texture(data, data->player.weapon.shoot_texture);
}