Fix T75472 Crash on "Remove Empty Animation Data" in NLA editor
The `ANIMFILTER_NODUPLIS` option, to prevent duplicates in the list of animation data to be freed, was missing. This caused a use-after-free.
This commit is contained in:
parent
5fed9ac9b5
commit
6f598ecc1a
Notes:
blender-bot
2023-02-14 04:39:18 +01:00
Referenced by issue #75472, Crash on "Remove Empty Animation Data" in NLA editor because of some materials
|
@ -2268,7 +2268,8 @@ static int animchannels_clean_empty_exec(bContext *C, wmOperator *UNUSED(op))
|
|||
}
|
||||
|
||||
/* get animdata blocks */
|
||||
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_ANIMDATA);
|
||||
filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_LIST_VISIBLE | ANIMFILTER_ANIMDATA |
|
||||
ANIMFILTER_NODUPLIS);
|
||||
ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype);
|
||||
|
||||
for (ale = anim_data.first; ale; ale = ale->next) {
|
||||
|
|
Loading…
Reference in New Issue