Fixes a memory leak which caused Blender to hog up more and more memory

when rendering long animations.
This commit is contained in:
Alexander Ewering
2003-05-31 15:44:58 +00:00
parent 302479603b
commit 271dc5aaf1

View File

@@ -463,7 +463,8 @@ void make_orco_displist_mesh(Object *ob, int subdivlvl)
* should be explicit -zr
*/
dlm= dl->mesh;
if (me->orco) MEM_freeN(me->orco);
me->orco= MEM_mallocN(dlm->totvert*3*sizeof(float), "mesh displist orco");
for(i=0; i<dlm->totvert; i++) {