From 6267fd1865a1354cf059567bdbcf56d802e5403b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 6 Aug 2019 23:09:27 +0200 Subject: [PATCH] Fix memory leak in LoadGLTF() (#929) Free texturePath in LoadGLTF() --- src/models.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/models.c b/src/models.c index f848e0abc..8b5fb472b 100644 --- a/src/models.c +++ b/src/models.c @@ -3457,6 +3457,7 @@ static Model LoadGLTF(const char *fileName) ImageColorTint(&image, tint); texture = LoadTextureFromImage(image); UnloadImage(image); + RL_FREE(texturePath); } } else if (img->buffer_view)