Fix (unreported) memory leak when freeing Master collections.

Potential ID properties there (or any other ID data itself) would not be
freed.
This commit is contained in:
Bastien Montagne 2020-11-04 18:13:04 +01:00
parent 7a8c8ec5e9
commit afe5345a3f
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}