Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <bastien@blender.org>2020-11-04 20:13:04 +0300
committerBastien Montagne <bastien@blender.org>2020-11-04 20:16:07 +0300
commitafe5345a3fd1676eebe8b64157133d787d21669d (patch)
tree1d4082ebf66db7f073720d4b8b785d17719ef971
parent7a8c8ec5e990765bab2e8db6b54ed4f0e80c2a2b (diff)
Fix (unreported) memory leak when freeing Master collections.
Potential ID properties there (or any other ID data itself) would not be freed.
-rw-r--r--source/blender/blenkernel/intern/collection.c1
1 files changed, 1 insertions, 0 deletions
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);
}