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:
authorSergey Sharybin <sergey.vfx@gmail.com>2016-07-27 11:59:09 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2016-07-27 11:59:09 +0300
commit5f95ffe35034120189340cd413f24979da92109e (patch)
tree4076f8060cff3b1320c07a1148aa1a52aa292801 /source/blender/gpu/intern/gpu_codegen.c
parent3d8c2e25a3af1ea1645f5a6df1b566ae6313e657 (diff)
Fix T48829: Memory leak on Blender Exit
It was possible to have missing outlink but GPUNodes in material.
Diffstat (limited to 'source/blender/gpu/intern/gpu_codegen.c')
-rw-r--r--source/blender/gpu/intern/gpu_codegen.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c
index aec94f9f2cb..c40bc8eaf27 100644
--- a/source/blender/gpu/intern/gpu_codegen.c
+++ b/source/blender/gpu/intern/gpu_codegen.c
@@ -1732,3 +1732,9 @@ void GPU_pass_free(GPUPass *pass)
MEM_freeN(pass->vertexcode);
MEM_freeN(pass);
}
+
+void GPU_pass_free_nodes(ListBase *nodes)
+{
+ gpu_nodes_free(nodes);
+}
+