[Bf-blender-cvs] [3467f8f] strand_gpu: Fix unfreed memory due to incorrect pointer checks.
Lukas Tönne
noreply at git.blender.org
Tue Jul 19 17:12:56 CEST 2016
Commit: 3467f8fb82b7142241ca09b45e553da70c3b6eb6
Author: Lukas Tönne
Date: Tue Jul 19 17:12:08 2016 +0200
Branches: strand_gpu
https://developer.blender.org/rB3467f8fb82b7142241ca09b45e553da70c3b6eb6
Fix unfreed memory due to incorrect pointer checks.
===================================================================
M source/blender/gpu/intern/gpu_strands_shader.c
===================================================================
diff --git a/source/blender/gpu/intern/gpu_strands_shader.c b/source/blender/gpu/intern/gpu_strands_shader.c
index 88bb4c7..38a7c55 100644
--- a/source/blender/gpu/intern/gpu_strands_shader.c
+++ b/source/blender/gpu/intern/gpu_strands_shader.c
@@ -280,11 +280,11 @@ void GPU_strand_shader_free(struct GPUStrandsShader *gpu_shader)
if (gpu_shader->debug_shader)
GPU_shader_free(gpu_shader->debug_shader);
- if (gpu_shader->vertexcode)
+ if (gpu_shader->debug_vertexcode)
MEM_freeN(gpu_shader->debug_vertexcode);
- if (gpu_shader->geometrycode)
+ if (gpu_shader->debug_geometrycode)
MEM_freeN(gpu_shader->debug_geometrycode);
- if (gpu_shader->fragmentcode)
+ if (gpu_shader->debug_fragmentcode)
MEM_freeN(gpu_shader->debug_fragmentcode);
MEM_freeN(gpu_shader);
More information about the Bf-blender-cvs
mailing list