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:
parent
c188ab7b67
commit
ebbb55dd80
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue