-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrelease_sprites.c
24 lines (21 loc) · 1.13 KB
/
release_sprites.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* release_sprites.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ahamdaou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2020/12/16 04:09:16 by ahamdaou #+# #+# */
/* Updated: 2021/01/21 12:22:05 by ahamdaou ### ########.fr */
/* */
/* ************************************************************************** */
#include "cub3d.h"
/*
** Make sure to call this function before game ends, otherwise memory leak.
** Deallocate sprites memory only if sprite's head is exists
** otherwise do nothing.
*/
void release_sprites(void)
{
mlx_destroy_image(vars()->mlx, g_game.s->img);
}