diff options
author | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-06-05 12:23:44 +0400 |
---|---|---|
committer | Lukas Toenne <lukas.toenne@googlemail.com> | 2013-06-05 12:23:44 +0400 |
commit | 4d53729ab99e286d74bc6a106bccadd2e1e9f955 (patch) | |
tree | 7e514517f65660a4ed93836172f75dd97eea8385 /source/blender/nodes/shader | |
parent | 5f0731dc8db7956c659851359428e38c5922537a (diff) |
Fix #35625, crash with NULL pointer after node render. Happens when node group node_tree pointer is NULL, then the group node doesn not produce any execdata and needs to check this accordingly in the
freeexec callback.
Diffstat (limited to 'source/blender/nodes/shader')
-rw-r--r-- | source/blender/nodes/shader/nodes/node_shader_common.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_common.c b/source/blender/nodes/shader/nodes/node_shader_common.c index 4bc88aa7764..72178018de4 100644 --- a/source/blender/nodes/shader/nodes/node_shader_common.c +++ b/source/blender/nodes/shader/nodes/node_shader_common.c @@ -89,7 +89,8 @@ static void group_freeexec(bNode *UNUSED(node), void *nodedata) { bNodeTreeExec *gexec = (bNodeTreeExec *)nodedata; - ntreeShaderEndExecTree_internal(gexec); + if (gexec) + ntreeShaderEndExecTree_internal(gexec); } /* Copy inputs to the internal stack. |