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
This commit is contained in:
2009-06-13 16:49:30 +00:00
parent 76cd7046bb
commit a2bc531dc1

View File

@@ -1285,7 +1285,7 @@ void GPU_materials_free()
GPU_material_free(&defmaterial); 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); GPU_lamp_free(ob);
} }