From 073aca54bf8e3a20eba04cb4c26dc35ec43785e7 Mon Sep 17 00:00:00 2001 From: Rudy Bousset Date: Wed, 4 Mar 2020 20:27:51 +0100 Subject: Music on macOS is half bav --- src/ft_parse_map.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/ft_parse_map.c') diff --git a/src/ft_parse_map.c b/src/ft_parse_map.c index 6a9c5af..3c1fd9c 100644 --- a/src/ft_parse_map.c +++ b/src/ft_parse_map.c @@ -77,7 +77,7 @@ static int8_t void ft_save_name(const char *map_path, t_map *mlist, t_cub *clist) { - ft_memdel((void**)mlist->filename); + ft_memdel((void**)&mlist->filename); if (!(mlist->filename = (char*)malloc((ft_strlen(map_path) + 1) * sizeof(char)))) ft_error(FT_RET_ALLOC_ERR, FT_ERR_ALLOCATE, clist); -- cgit v1.2.3