Fix memory leak in LoadGLTF()
Free texturePath in LoadGLTF()
This commit is contained in:
parent
94abe0db88
commit
973e5d4382
|
|
@ -3459,6 +3459,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)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user