diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-29 23:21:16 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-01-29 23:21:16 +0100 |
commit | 3fe40e249fbad468347b2a0d643b19f1f5f3f524 (patch) | |
tree | f696e53265307a1b15b36c2d72bb6dfbd95a8885 /src/ft_get_colors.c | |
parent | it's wonderful (diff) | |
download | 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.gz 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.bz2 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.xz 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.tar.zst 42-cub3d-3fe40e249fbad468347b2a0d643b19f1f5f3f524.zip |
I've seen enough
Diffstat (limited to 'src/ft_get_colors.c')
-rw-r--r-- | src/ft_get_colors.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ft_get_colors.c b/src/ft_get_colors.c index 226b427..f21cd99 100644 --- a/src/ft_get_colors.c +++ b/src/ft_get_colors.c @@ -37,6 +37,7 @@ ft_get_f_color(char **words, t_cub *clist) clist->f_color += ft_atoi(num[1]); clist->f_color *= 1000; clist->f_color += ft_atoi(num[2]); + ft_free_words(num); return (0); } @@ -62,5 +63,6 @@ ft_get_c_color(char **words, t_cub *clist) clist->c_color += ft_atoi(num[1]); clist->c_color *= 1000; clist->c_color += ft_atoi(num[2]); + ft_free_words(num); return (0); } |