aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_get_music.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 19:28:18 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-03-16 19:28:18 +0100
commit7f3461875572335eedffa272226199dd1c2fc92a (patch)
treeab0a7ac913340dc09222cd49c72ead44ddc93fd4 /src/ft_get_music.c
parentStill searching (diff)
download42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.gz
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.bz2
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.xz
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.tar.zst
42-cub3d-7f3461875572335eedffa272226199dd1c2fc92a.zip
Cleaner memdels
Diffstat (limited to '')
-rw-r--r--src/ft_get_music.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_get_music.c b/src/ft_get_music.c
index 7a8d36f..6d4f299 100644
--- a/src/ft_get_music.c
+++ b/src/ft_get_music.c
@@ -22,7 +22,7 @@ static int8_t
len = ft_strlen(mlist->music_path);
len += ft_strlen(FT_SND_CMD) - 2;
- ft_memdel((void**)&mlist->music_cmd);
+ ft_memdel((void*)&mlist->music_cmd);
if (!(mlist->music_cmd = (char *)malloc((len + 1) * sizeof(char))))
return (-1);
ft_sprintf(mlist->music_cmd, FT_SND_CMD,
@@ -46,7 +46,7 @@ int8_t
ft_sprintf(clist->errmsg, FT_ERR_NOT_A_WAV);
return (-1);
}
- ft_memdel((void**)&clist->mlist.music_path);
+ ft_memdel((void*)&clist->mlist.music_path);
if (!(clist->mlist.music_path = ft_strdup(*(words + 1))))
{
ft_sprintf(clist->errmsg, FT_ERR_ALLOCATE);