cgltf_load_buffers loads base64-encoded buffers with the memory.alloc callback, but cgltf_free frees all buffers with file.release. This is incorrect for cases where memory.free actually frees memory but file.read doesn't (e.g. using static embedded files), leading to a memory leak.
cgltf_load_buffers
loads base64-encoded buffers with thememory.alloc
callback, butcgltf_free
frees all buffers withfile.release
. This is incorrect for cases wherememory.free
actually frees memory butfile.read
doesn't (e.g. using static embedded files), leading to a memory leak.