aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_parse_map.c
diff options
context:
space:
mode:
authorRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
committerRudy Bousset <rbousset@z2r5p6.le-101.fr>2020-02-02 17:05:54 +0100
commit8d7f65c1c04f7124f1a34062be377fdbe721c46a (patch)
tree36ef68573148ba58843608a499504138cca3595d /src/ft_parse_map.c
parentRemoved whitespace (diff)
download42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.gz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.bz2
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.xz
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.tar.zst
42-cub3d-8d7f65c1c04f7124f1a34062be377fdbe721c46a.zip
Correct ft_memdel
Diffstat (limited to 'src/ft_parse_map.c')
-rw-r--r--src/ft_parse_map.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c
index 77f3f47..cc4d920 100644
--- a/src/ft_parse_map.c
+++ b/src/ft_parse_map.c
@@ -60,17 +60,17 @@ ft_parse_it(int fd, t_cub *clist)
return (ft_map_error(clist));
if (ret == 0)
{
- ft_memdel(line);
+ ft_memdel((void**)&line);
return (ft_map_error(clist));
}
if (!line[0])
{
- ft_memdel(line);
+ ft_memdel((void**)&line);
return (ft_parse_it(fd, clist));
}
if (!(words = ft_split(line, ' ')))
{
- ft_memdel(line);
+ ft_memdel((void**)&line);
return (ft_map_error(clist));
}
if ((ret = ft_select_get(words, clist)) == 12)
@@ -79,7 +79,7 @@ ft_parse_it(int fd, t_cub *clist)
return (-1);
return (12);
}
- ft_memdel(line);
+ ft_memdel((void**)&line);
return (ret);
}