Depsgraph: Fix memory leak when datablock is not reused

It is possible that datablock will not be re-used for the new
dependency graph building. Freeing function was freeing all
the nested pointers of databnlock, but not datablock memory
itself.
This commit is contained in:
Sergey Sharybin 2018-03-20 16:06:21 +01:00
parent c188ab7b67
commit ebbb55dd80
1 changed files with 1 additions and 0 deletions

View File

@ -155,6 +155,7 @@ void free_copy_on_write_datablock(void *id_v)
{
ID *id = (ID *)id_v;
deg_free_copy_on_write_datablock(id);
MEM_freeN(id);
}
} /* namespace */