[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [18265] branches/bmesh/bmesh/ editmesh_tools.c: forgot to free the bmesh, heh

Joseph Eagar joeedh at gmail.com
Fri Jan 2 16:49:31 CET 2009


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





More information about the Bf-blender-cvs mailing list