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:
authorTon Roosendaal <ton@blender.org>2006-06-27 17:13:49 +0400
committerTon Roosendaal <ton@blender.org>2006-06-27 17:13:49 +0400
commitc93176260a1178b440f14653e8e13280b37b03be (patch)
tree1692e2eff240cbfce76e2138e3959c5fec3e3efb /source
parent9b8b816e6a168470fffb36a8e18926f32b8343a3 (diff)
Bugfix #4446
Wire render crashes in Linux (only!), but why? Using a calloc instead of malloc fixes it, but that doesn't solve the real issue in the code. I can only imagine that bsearch() in linux has a completely different implementation... Anyhoo; let's commit the calloc, at least then we got stable wire render!
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/convertblender.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/convertblender.c b/source/blender/render/intern/source/convertblender.c
index 0c3bbf2fc99..2834ab4402c 100644
--- a/source/blender/render/intern/source/convertblender.c
+++ b/source/blender/render/intern/source/convertblender.c
@@ -1665,7 +1665,7 @@ static struct edgesort *make_mesh_edge_lookup(Mesh *me, DispListMesh *dlm, int *
}
if(totedge==0) return NULL;
- ed= edsort= MEM_mallocN(totedge*sizeof(struct edgesort), "edgesort");
+ ed= edsort= MEM_callocN(totedge*sizeof(struct edgesort), "edgesort");
for(a= me->totface, mf= mface; a>0; a--, mf++) {
if(mface->v4 || mface->v3) {