-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.c
More file actions
34 lines (30 loc) · 1.18 KB
/
clean.c
File metadata and controls
34 lines (30 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* clean.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ehugh-be <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/01/11 02:57:48 by ehugh-be #+# #+# */
/* Updated: 2019/01/18 17:14:54 by ehugh-be ### ########.fr */
/* */
/* ************************************************************************** */
#include "fdf.h"
#include <stdio.h>
void map_free(t_map **mp)
{
ft_vecdel((void **)&(*mp)->vec);
free(*mp);
*mp = NULL;
}
void mlx_free(t_mlx **mlx)
{
mlx_destroy_window((*mlx)->mlx_ptr, (*mlx)->win_ptr);
*mlx = NULL;
}
int fdf_finish(t_map **mp, t_mlx **mlx)
{
map_free(mp);
mlx_free(mlx);
return (0);
}