diff options
author | Bastien Montagne <bastien@blender.org> | 2020-11-04 20:13:04 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-11-04 20:16:07 +0300 |
commit | afe5345a3fd1676eebe8b64157133d787d21669d (patch) | |
tree | 1d4082ebf66db7f073720d4b8b785d17719ef971 /source/blender | |
parent | 7a8c8ec5e990765bab2e8db6b54ed4f0e80c2a2b (diff) |
Fix (unreported) memory leak when freeing Master collections.
Potential ID properties there (or any other ID data itself) would not be
freed.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/collection.c | 1 |
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); } |