Fix: Incorrect free of null IDProperty array during Collection Export
This was unfortunately regressed during another recent fix [1].
Simply check for null last_properties before removing them.
[1] a362c225c0
Pull Request: https://projects.blender.org/blender/blender/pulls/124698
This commit is contained in:
committed by
Jesse Yurkovich
parent
b5145d6889
commit
ba6a89e5db
@@ -620,7 +620,9 @@ static int collection_exporter_export(bContext *C,
|
||||
|
||||
/* Free the "last used" properties that were just set from the collection export and restore the
|
||||
* original "last used" properties. */
|
||||
IDP_FreeProperty(ot->last_properties);
|
||||
if (ot->last_properties) {
|
||||
IDP_FreeProperty(ot->last_properties);
|
||||
}
|
||||
ot->last_properties = last_properties;
|
||||
|
||||
IDP_FreeProperty(op_props);
|
||||
|
||||
Reference in New Issue
Block a user