[Bf-blender-cvs] [afe5345a3fd] master: Fix (unreported) memory leak when freeing Master collections.
Bastien Montagne
noreply at git.blender.org
Wed Nov 4 18:16:14 CET 2020
Commit: afe5345a3fd1676eebe8b64157133d787d21669d
Author: Bastien Montagne
Date: Wed Nov 4 18:13:04 2020 +0100
Branches: master
https://developer.blender.org/rBafe5345a3fd1676eebe8b64157133d787d21669d
Fix (unreported) memory leak when freeing Master collections.
Potential ID properties there (or any other ID data itself) would not be
freed.
===================================================================
M source/blender/blenkernel/intern/collection.c
===================================================================
diff --git a/source/blender/blenkernel/intern/collection.c b/source/blender/blenkernel/intern/collection.c
index b1222e9527c..c4640f33591 100644
--- a/source/blender/blenkernel/intern/collection.c
+++ b/source/blender/blenkernel/intern/collection.c
@@ -474,6 +474,7 @@ void BKE_collection_add_from_collection(Main *bmain,
/** Free (or release) any data used by this collection (does not free the collection itself). */
void BKE_collection_free(Collection *collection)
{
+ BKE_libblock_free_data(&collection->id, false);
collection_free_data(&collection->id);
}
More information about the Bf-blender-cvs
mailing list