Fix crash on Windows introduced in commit ed2239f

Memory allocated with xcalloc_aligned (which uses _aligned_malloc on
Windows) must be freed with _aligned_free. Using standard free() caused
heap corruption and crashes.
This commit is contained in:
kichikuou
2026-02-06 16:29:14 +09:00
parent 15cfc5463b
commit 5f13b3e9d0
5 changed files with 8 additions and 8 deletions
+1 -1
View File
@@ -594,7 +594,7 @@ void model_free(struct model *model)
for (int i = 0; i < model->nr_bones; i++)
destroy_bone(&model->bones[i]);
free(model->bones);
xfree_aligned(model->bones);
if (model->bone_map)
ht_free_int(model->bone_map);
if (model->bone_name_map)