From 3d8b1165a8647c64cdbb3b4ca76371d67e758ea8 Mon Sep 17 00:00:00 2001 From: chriscamacho Date: Wed, 23 Oct 2019 09:42:17 +0100 Subject: [PATCH] mem leak in gltf loader (#995) --- src/models.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/models.c b/src/models.c index 17cd9456..501f1e70 100644 --- a/src/models.c +++ b/src/models.c @@ -3419,7 +3419,8 @@ static Texture LoadTextureFromCgltfImage(cgltf_image *image, const char *texPath free(data); Image rimage = LoadImagePro(raw, w, h, UNCOMPRESSED_R8G8B8A8); - + free(raw); + // TODO: Tint shouldn't be applied here! ImageColorTint(&rimage, tint); texture = LoadTextureFromImage(rimage);