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
path: root/source
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2009-06-13 20:49:30 +0400
committerKent Mein <mein@cs.umn.edu>2009-06-13 20:49:30 +0400
commita2bc531dc1ff47facd800f52c8f29cf5453d8b77 (patch)
tree770c7296ab080e54dc46c430462cd3b0ca7e6448 /source
parent76cd7046bba916737de142a76b06adea9f52660c (diff)
coverity issue CID: 228
Checker: DEADCODE (help) File: base/src/source/blender/gpu/intern/gpu_material.c Function: GPU_materials_free Description: Conditional "ma != 0" was looping over wrong variable I'm guessing a cut and paste error from above. Kent
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_material.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c
index 818b67170c7..7e8b5c18d71 100644
--- a/source/blender/gpu/intern/gpu_material.c
+++ b/source/blender/gpu/intern/gpu_material.c
@@ -1285,7 +1285,7 @@ void GPU_materials_free()
GPU_material_free(&defmaterial);
- for(ob=G.main->object.first; ma; ma=ma->id.next)
+ for(ob=G.main->object.first; ob; ob=ob->id.next)
GPU_lamp_free(ob);
}