aboutsummaryrefslogtreecommitdiffstats
path: root/src/ft_init_winlx.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_init_winlx.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_init_winlx.c')
-rw-r--r--src/ft_init_winlx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ft_init_winlx.c b/src/ft_init_winlx.c
index d45f19d..5706685 100644
--- a/src/ft_init_winlx.c
+++ b/src/ft_init_winlx.c
@@ -6,10 +6,10 @@
int
ft_init_winlx(t_cub *clist)
{
- ft_memdel(clist->wlist->wlx);
+ ft_memdel((void**)&clist->wlist->wlx);
if (!(clist->wlist->wlx = mlx_init()))
return (-1);
- ft_memdel(clist->wlist->winptr);
+ ft_memdel((void**)&clist->wlist->winptr);
if (!(clist->wlist->winptr = mlx_new_window(clist->wlist->wlx,
clist->wlist->x_size, clist->wlist->y_size, "Cub3D")))
return (-1);