[Bf-blender-cvs] [9bbd9d9b3bd] master: Fix small memory leak in Cycles principled BSDF
Brecht Van Lommel
noreply at git.blender.org
Fri Jun 21 18:47:50 CEST 2019
Commit: 9bbd9d9b3bd7f54c33c69cdf2f07178ad5f4460d
Author: Brecht Van Lommel
Date: Fri Jun 21 18:02:43 2019 +0200
Branches: master
https://developer.blender.org/rB9bbd9d9b3bd7f54c33c69cdf2f07178ad5f4460d
Fix small memory leak in Cycles principled BSDF
===================================================================
M intern/cycles/render/graph.cpp
===================================================================
diff --git a/intern/cycles/render/graph.cpp b/intern/cycles/render/graph.cpp
index 9203c4468d2..a56871779cf 100644
--- a/intern/cycles/render/graph.cpp
+++ b/intern/cycles/render/graph.cpp
@@ -130,6 +130,7 @@ ShaderOutput *ShaderNode::output(ustring name)
void ShaderNode::remove_input(ShaderInput *input)
{
assert(input->link == NULL);
+ delete input;
inputs.erase(remove(inputs.begin(), inputs.end(), input), inputs.end());
}
More information about the Bf-blender-cvs
mailing list