diff --git a/source/blender/makesrna/intern/rna_depsgraph.cc b/source/blender/makesrna/intern/rna_depsgraph.cc index a0e2e90349b..ee6e547d4ce 100644 --- a/source/blender/makesrna/intern/rna_depsgraph.cc +++ b/source/blender/makesrna/intern/rna_depsgraph.cc @@ -340,8 +340,8 @@ static void rna_Depsgraph_objects_end(CollectionPropertyIterator *iter) DEGObjectIterData *data = (DEGObjectIterData *)((BLI_Iterator *)iter->internal.custom)->data; DEG_iterator_objects_end(static_cast(iter->internal.custom)); MEM_freeN(data->settings); - MEM_freeN(((BLI_Iterator *)iter->internal.custom)->data); MEM_delete(data); + MEM_freeN(iter->internal.custom); } static PointerRNA rna_Depsgraph_objects_get(CollectionPropertyIterator *iter)