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
1 changed files with 1 additions and 1 deletions
|
@ -4658,7 +4658,7 @@ static Image LoadImageFromCgltfImage(cgltf_image *cgltfImage, const char *texPat
|
|||
if (result == cgltf_result_success)
|
||||
{
|
||||
image = LoadImageFromMemory(".png", (unsigned char *)data, outSize);
|
||||
cgltf_free((cgltf_data*)data);
|
||||
MemFree((cgltf_data*)data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue