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:
authorJeroen Bakker <j.bakker@atmind.nl>2020-04-16 17:55:46 +0300
committerJeroen Bakker <j.bakker@atmind.nl>2020-04-16 17:55:46 +0300
commitdb600fd63998b81022f01e0b1b6b71c9cd359130 (patch)
treecdb815b64525148589bede61e0c3445ccf470d29 /source/blender/gpu
parente22e766cf82315adfbef6687c29b809ac24994c6 (diff)
Fix Memory Leak in Shader Interface
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/intern/gpu_shader_interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader_interface.c b/source/blender/gpu/intern/gpu_shader_interface.c
index db8ec60fa9a..1caa88d18ae 100644
--- a/source/blender/gpu/intern/gpu_shader_interface.c
+++ b/source/blender/gpu/intern/gpu_shader_interface.c
@@ -257,6 +257,7 @@ GPUShaderInterface *GPU_shaderinterface_create(int32_t program)
input->location = glGetAttribLocation(program, name);
/* Ignore OpenGL names like `gl_BaseInstanceARB`, `gl_InstanceID` and `gl_VertexID`. */
if (input->location == -1) {
+ MEM_freeN(input);
continue;
}