Skip to content

Commit

Permalink
don't try to free a void* buffer as if it's a cgltf_data structure (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffM2501 authored Jan 19, 2023
1 parent 76468bb commit 116603e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rmodels.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
Expand Down

0 comments on commit 116603e

Please sign in to comment.