From b0de45d7879b265c3c255f1aeefc9aa982f3403b Mon Sep 17 00:00:00 2001 From: "W2.Wizard" <63303990+W2Wizard@users.noreply.github.com> Date: Tue, 31 May 2022 12:32:08 +0200 Subject: [PATCH] Fix memory leak Co-authored-by: abelvanbergen --- src/mlx_exit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mlx_exit.c b/src/mlx_exit.c index 656f216..3165238 100644 --- a/src/mlx_exit.c +++ b/src/mlx_exit.c @@ -6,7 +6,7 @@ /* By: W2Wizard +#+ */ /* +#+ */ /* Created: 2021/12/28 02:43:22 by W2Wizard #+# #+# */ -/* Updated: 2022/04/13 00:08:15 by w2wizard ######## odam.nl */ +/* Updated: 2022/05/31 12:30:27 by lde-la-h ######## odam.nl */ /* */ /* ************************************************************************** */ @@ -18,7 +18,7 @@ static void mlx_free_image(void* content) { mlx_image_t* img = content; - mlx_freen(3, img->context, img->pixels, img->instances); + mlx_freen(4, img->context, img->pixels, img->instances, img); } //= Public =//