Revision: 18265
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=18265
Author: joeedh
Date: 2009-01-02 16:49:31 +0100 (Fri, 02 Jan 2009)
Log Message:
-----------
forgot to free the bmesh, heh
Modified Paths:
--------------
branches/bmesh/bmesh/editmesh_tools.c
Modified: branches/bmesh/bmesh/editmesh_tools.c
===================================================================
--- branches/bmesh/bmesh/editmesh_tools.c 2009-01-02 15:25:58 UTC (rev
18264)
+++ branches/bmesh/bmesh/editmesh_tools.c 2009-01-02 15:49:31 UTC (rev
18265)
@@ -2435,7 +2435,7 @@
if (BM_Is_Selected(bm, bed)) tot++;
}
- list = MEM_callocN(sizeof(void*)*tot, "eed ptr list");
+ list = MEM_callocN(sizeof(void*)*tot, "vert ptr list");
for (tot=0, bed=BMIter_New(&iter, bm, BM_EDGES, NULL); bed;
bed=BMIter_Step(&iter)) {
if (BM_Is_Selected(bm, bed)) list[tot++] = bed;
@@ -2446,7 +2446,8 @@
free_editMesh(G.editMesh);
bmesh_to_editmesh(bm);
-
+ BM_Free_Mesh(bm);
+
if (list) MEM_freeN(list);
}
#else
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs