fixed leaks in gltf loader
This commit is contained in:
parent
7baa2975ec
commit
aec406ed0a
|
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user