diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-21 19:02:43 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-21 19:15:04 +0300 |
commit | 9bbd9d9b3bd7f54c33c69cdf2f07178ad5f4460d (patch) | |
tree | 3e6760b33b73b3ddd4b28b2500be8d32d980385a | |
parent | 5e754b632052854955d2724316e3839c4d6ec776 (diff) |
Fix small memory leak in Cycles principled BSDF
-rw-r--r-- | intern/cycles/render/graph.cpp | 1 |
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()); } |