fix: leak
This commit is contained in:
parent
d7ff717f35
commit
e74045d318
1 changed files with 2 additions and 1 deletions
3
algo.c
3
algo.c
|
@ -6,7 +6,7 @@
|
||||||
/* By: mcolonna <mcolonna@student.42.fr> +#+ +:+ +#+ */
|
/* By: mcolonna <mcolonna@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/10/01 16:24:58 by grobledo #+# #+# */
|
/* Created: 2024/10/01 16:24:58 by grobledo #+# #+# */
|
||||||
/* Updated: 2024/10/17 16:35:28 by mcolonna ### ########.fr */
|
/* Updated: 2024/10/17 16:59:16 by mcolonna ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
@ -40,6 +40,7 @@ void draw_screen(void)
|
||||||
}
|
}
|
||||||
render(img_data);
|
render(img_data);
|
||||||
mlx_put_image_to_window(g_mlx, g_win, img_ptr, 0, 0);
|
mlx_put_image_to_window(g_mlx, g_win, img_ptr, 0, 0);
|
||||||
|
mlx_destroy_image(g_mlx, img_ptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
void load_textures()
|
void load_textures()
|
||||||
|
|
Loading…
Add table
Reference in a new issue