diff options
Diffstat (limited to 'source/blender/blenkernel/intern/node.c')
-rw-r--r-- | source/blender/blenkernel/intern/node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/node.c b/source/blender/blenkernel/intern/node.c index 28c3e1c64e6..4e36df35a14 100644 --- a/source/blender/blenkernel/intern/node.c +++ b/source/blender/blenkernel/intern/node.c @@ -1989,7 +1989,7 @@ void ntreeEndExecTree(bNodeTree *ntree) if(ntree->threadstack) { for(a=0; a<BLENDER_MAX_THREADS; a++) { for(nts=ntree->threadstack[a].first; nts; nts=nts->next) - MEM_freeN(nts->stack); + if (nts->stack) MEM_freeN(nts->stack); BLI_freelistN(&ntree->threadstack[a]); } |