[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41105] branches/bmesh/blender/source/ blender/editors/mesh/knifetool.c: Fix for a memory corruption bug in knife tool cleanup

Andrew Wiggin ender79bl at gmail.com
Tue Oct 18 14:54:24 CEST 2011


Revision: 41105
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41105
Author:   ender79
Date:     2011-10-18 12:54:23 +0000 (Tue, 18 Oct 2011)
Log Message:
-----------
Fix for a memory corruption bug in knife tool cleanup

Modified Paths:
--------------
    branches/bmesh/blender/source/blender/editors/mesh/knifetool.c

Modified: branches/bmesh/blender/source/blender/editors/mesh/knifetool.c
===================================================================
--- branches/bmesh/blender/source/blender/editors/mesh/knifetool.c	2011-10-18 11:28:39 UTC (rev 41104)
+++ branches/bmesh/blender/source/blender/editors/mesh/knifetool.c	2011-10-18 12:54:23 UTC (rev 41105)
@@ -1677,12 +1677,12 @@
 	/* tag for redraw */
 	ED_region_tag_redraw(kcd->ar);
 
+	if (kcd->cagecos)
+		MEM_freeN(kcd->cagecos);
+
 	/* destroy kcd itself */
 	MEM_freeN(kcd);
 	op->customdata= NULL;
-	
-	if (kcd->cagecos)
-		MEM_freeN(kcd->cagecos);
 }
 
 static void cage_mapped_verts_callback(void *userData, int index, float *co, 




More information about the Bf-blender-cvs mailing list