Wow! bugfix in bf-blender again!
authorTon Roosendaal <ton@blender.org>
Sat, 28 Jan 2006 19:05:49 +0000 (19:05 +0000)
committerTon Roosendaal <ton@blender.org>
Sat, 28 Jan 2006 19:05:49 +0000 (19:05 +0000)
Simon C. gave me a nice crash.blend, in zbuffered transparent render.
Was a malloc that should become calloc... :)

source/blender/render/intern/source/zbuf.c

index 3be859019edc95a1ebbf972b8455a5f93257ce67..1c2cdb2c616feb5aad34d29901238205875703a4 100644 (file)
@@ -258,7 +258,7 @@ static APixstr *addpsmainA(ListBase *lb)
 
        psm= RE_mallocN(sizeof(APixstrMain), "addpsmainA");
        BLI_addtail(lb, psm);
-       psm->ps= RE_mallocN(4096*sizeof(APixstr),"pixstr");
+       psm->ps= RE_callocN(4096*sizeof(APixstr),"pixstr");
 
        return psm->ps;
 }