diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 19:28:18 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-03-16 19:28:18 +0100 |
commit | 7f3461875572335eedffa272226199dd1c2fc92a (patch) | |
tree | ab0a7ac913340dc09222cd49c72ead44ddc93fd4 /src/ft_save_to_bmp.c | |
parent | Still searching (diff) | |
download | 42-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 'src/ft_save_to_bmp.c')
-rw-r--r-- | src/ft_save_to_bmp.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ft_save_to_bmp.c b/src/ft_save_to_bmp.c index ae3a2b6..1737226 100644 --- a/src/ft_save_to_bmp.c +++ b/src/ft_save_to_bmp.c @@ -111,16 +111,16 @@ int8_t return (-1); if (!(bmp = ft_convert_image_to_bmp(cl->img, cl))) { - ft_memdel((void**)&fname); + ft_memdel((void*)&fname); return (-1); } if (ft_write_bmp(fname, cl->wlist.y_size, cl->wlist.x_size, bmp) < 0) { - ft_memdel((void**)&bmp); - ft_memdel((void**)&fname); + ft_memdel((void*)&bmp); + ft_memdel((void*)&fname); return (-1); } - ft_memdel((void**)&bmp); - ft_memdel((void**)&fname); + ft_memdel((void*)&bmp); + ft_memdel((void*)&fname); return (0); } |