mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
fix: Fixed memory leak for shooting texture
This commit is contained in:
parent
ee56e2fdbd
commit
6cee6643e4
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue