Fix for crash when duplicating image or render layer nodes.
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 12:46:30 +0000 (12:46 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 7 Sep 2011 12:46:30 +0000 (12:46 +0000)
commit7db716599cd939cee4cc574e02ecd1468bb40b94
treeb4010af8ae521aa8fae099434e1eac7f82d2579c
parent68693b453240d10104a54bbd527918850b4f7b7f
Fix for crash when duplicating image or render layer nodes.

These nodes use cached buffers (in sock->cache), which need to be cleared when duplicating the node, otherwise the buffer will be freed twice.
source/blender/blenkernel/intern/node.c
source/blender/nodes/composite/node_composite_tree.c