fixed leaks in gltf loader

This commit is contained in:
Chris 2019-10-16 19:38:42 +01:00
parent 7baa2975ec
commit aec406ed0a

View File

@ -3516,6 +3516,8 @@ static Model LoadGLTF(const char *fileName)
ImageColorTint(&image, tint); ImageColorTint(&image, tint);
texture = LoadTextureFromImage(image); texture = LoadTextureFromImage(image);
UnloadImage(image); UnloadImage(image);
free(data);
free(raw);
} }
else else
{ {