Skip to content

Commit

Permalink
Fix memory leak
Browse files Browse the repository at this point in the history
Co-authored-by: abelvanbergen<[email protected]>
  • Loading branch information
W2Wizard committed May 31, 2022
1 parent 40b71a7 commit b0de45d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mlx_exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: W2Wizard <[email protected]> +#+ */
/* +#+ */
/* 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 */
/* */
/* ************************************************************************** */

Expand All @@ -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 =//
Expand Down

0 comments on commit b0de45d

Please sign in to comment.