mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-10-10 08:18:14 +03:00
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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user