Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-21 19:02:43 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-21 19:15:04 +0300
commit9bbd9d9b3bd7f54c33c69cdf2f07178ad5f4460d (patch)
tree3e6760b33b73b3ddd4b28b2500be8d32d980385a /intern/cycles/render
parent5e754b632052854955d2724316e3839c4d6ec776 (diff)
Fix small memory leak in Cycles principled BSDF
Diffstat (limited to 'intern/cycles/render')
-rw-r--r--intern/cycles/render/graph.cpp1
1 files changed, 1 insertions, 0 deletions
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());
}