Fix #108745: Crash in debug build when deleting object

`totitem_added` should be used instead to add `RNA_enum_item_end`

Pull Request: https://projects.blender.org/blender/blender/pulls/108762
This commit is contained in:
guishe
2023-06-08 17:19:16 +02:00
committed by Harley Acheson
parent 2e8317873f
commit 0c202993f1

View File

@@ -2066,7 +2066,7 @@ static const EnumPropertyItem *rna_SpaceProperties_context_itemf(bContext *UNUSE
}
}
RNA_enum_item_end(&item, &totitem);
RNA_enum_item_end(&item, &totitem_added);
*r_free = true;
return item;