Fix #123107: Memory leak when deleting edit bones

The list of bone collections of an edit bone wasn't freed when deleting
that edit bone.

Thanks @lichtwerk for the fix!
This commit is contained in:
Sybren A. Stüvel
2024-06-13 15:09:54 +02:00
parent f289da5bd5
commit 10c4d71fbe

View File

@@ -129,6 +129,7 @@ void bone_free(bArmature *arm, EditBone *bone)
}
}
BLI_freelistN(&bone->bone_collections);
BLI_freelinkN(arm->edbo, bone);
}