Fix memory leak in LoadGLTF() (#929)

Free texturePath in LoadGLTF()
This commit is contained in:
Michael Vetter 2019-08-06 23:09:27 +02:00 committed by Ray
parent f518c4e939
commit 6267fd1865

View file

@ -3457,6 +3457,7 @@ static Model LoadGLTF(const char *fileName)
ImageColorTint(&image, tint); ImageColorTint(&image, tint);
texture = LoadTextureFromImage(image); texture = LoadTextureFromImage(image);
UnloadImage(image); UnloadImage(image);
RL_FREE(texturePath);
} }
} }
else if (img->buffer_view) else if (img->buffer_view)