Depsgraph: Fix memory leak when datablock is not reused
authorSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Mar 2018 15:06:21 +0000 (16:06 +0100)
committerSergey Sharybin <sergey.vfx@gmail.com>
Tue, 20 Mar 2018 15:07:27 +0000 (16:07 +0100)
commitebbb55dd80531f1932b089d39f7350f265db7323
treeaf1d92f024fdc76c44b8277ead00c5757d11cbee
parentc188ab7b67e998f5ae972886be492d05b1d4485a
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.
source/blender/depsgraph/intern/builder/deg_builder_nodes.cc