diff options
Diffstat (limited to '')
-rw-r--r-- | src/ft_init_winlx.c | 4 |
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); |