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.
This commit is contained in:
Lukas Toenne 2013-06-05 08:23:44 +00:00
parent 5f0731dc8d
commit 4d53729ab9

@ -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.