mirror of
https://codeberg.org/ACME-Corporation/cub3d.git
synced 2025-12-06 01:48:08 +01:00
fix: Fixed memory leak for the door texture
This commit is contained in:
parent
47ffb17047
commit
13b1f7a88c
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/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;
|
||||
while (i < 6)
|
||||
destroy_texture(data, data->barricades_texture[i++]);
|
||||
destroy_texture(data, data->door_texture);
|
||||
}
|
||||
|
||||
void destroy_sprites(t_cub3d_data *data)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue