mirror of
https://github.com/raysan5/raylib.git
synced 2025-12-06 14:23:12 +00:00
don't try to free a void* buffer as if it's a cgltf_data structure (#2867)
This commit is contained in:
parent
76468bb8d8
commit
116603e61c
@ -4658,7 +4658,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
|
|||||||
if (result == cgltf_result_success)
|
if (result == cgltf_result_success)
|
||||||
{
|
{
|
||||||
image = LoadImageFromMemory(".png", (unsigned char *)data, outSize);
|
image = LoadImageFromMemory(".png", (unsigned char *)data, outSize);
|
||||||
cgltf_free((cgltf_data*)data);
|
MemFree((cgltf_data*)data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user