[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [58149] trunk/blender/intern/cycles/render /graph.cpp: Fix #36080: fix cycles crash with certain group node setups, accessing freed

Brecht Van Lommel brechtvanlommel at pandora.be
Wed Jul 10 12:50:20 CEST 2013


Revision: 58149
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=58149
Author:   blendix
Date:     2013-07-10 10:50:19 +0000 (Wed, 10 Jul 2013)
Log Message:
-----------
Fix #36080: fix cycles crash with certain group node setups, accessing freed
memory.

Modified Paths:
--------------
    trunk/blender/intern/cycles/render/graph.cpp

Modified: trunk/blender/intern/cycles/render/graph.cpp
===================================================================
--- trunk/blender/intern/cycles/render/graph.cpp	2013-07-10 10:31:59 UTC (rev 58148)
+++ trunk/blender/intern/cycles/render/graph.cpp	2013-07-10 10:50:19 UTC (rev 58149)
@@ -347,8 +347,9 @@
 
 					if(tonode->special_type == SHADER_SPECIAL_TYPE_AUTOCONVERT) {
 						bool all_links_removed = true;
+						vector<ShaderInput*> links = tonode->outputs[0]->links;
 
-						foreach(ShaderInput *autoin, tonode->outputs[0]->links) {
+						foreach(ShaderInput *autoin, links) {
 							if(autoin->default_value == ShaderInput::NONE)
 								all_links_removed = false;
 							else




More information about the Bf-blender-cvs mailing list