mirror of
https://github.com/raysan5/raylib.git
synced 2026-01-28 01:39:17 -05:00
mem leak in gltf loader (#995)
This commit is contained in:
@ -3419,7 +3419,8 @@ static Texture LoadTextureFromCgltfImage(cgltf_image *image, const char *texPath
|
|||||||
free(data);
|
free(data);
|
||||||
|
|
||||||
Image rimage = LoadImagePro(raw, w, h, UNCOMPRESSED_R8G8B8A8);
|
Image rimage = LoadImagePro(raw, w, h, UNCOMPRESSED_R8G8B8A8);
|
||||||
|
free(raw);
|
||||||
|
|
||||||
// TODO: Tint shouldn't be applied here!
|
// TODO: Tint shouldn't be applied here!
|
||||||
ImageColorTint(&rimage, tint);
|
ImageColorTint(&rimage, tint);
|
||||||
texture = LoadTextureFromImage(rimage);
|
texture = LoadTextureFromImage(rimage);
|
||||||
|
|||||||
Reference in New Issue
Block a user