fix memory leak in validating mesh and remove unneeded knife operator settings store.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 26 Apr 2012 15:20:26 +0000 (15:20 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 26 Apr 2012 15:20:26 +0000 (15:20 +0000)
source/blender/blenkernel/intern/mesh.c
source/blender/editors/mesh/editmesh_knife.c

index 514380dc980f3aa05031cfb84d46c51fdf516e50..b9a65403f843b7c53f78ee417974bc2a155c2349 100644 (file)
@@ -1154,6 +1154,8 @@ void mesh_strip_loose_edges(Mesh *me)
        for (a = 0, l = me->mloop; a < me->totloop; a++, l++) {
                l->e = new_idx[l->e];
        }
+
+       MEM_freeN(new_idx);
 }
 
 void mball_to_mesh(ListBase *lb, Mesh *me)
index 670b06887eb8398af6a5e185353a7f334176cd97..b3bc0a1ffa95af25bc7afedc51bf95e310bfbeba 100644 (file)
@@ -2721,10 +2721,6 @@ static void knifetool_exit(bContext *C, wmOperator *op)
 
        WM_cursor_restore(CTX_wm_window(C));
 
-       /* remember setting for later */
-       RNA_boolean_set(op->ptr, "use_occlude_geometry", !kcd->cut_through);
-       WM_operator_last_properties_store(op); /* XXX - this is clunky but modal ops wont do this automatic */
-
        /* deactivate the extra drawing stuff in 3D-View */
        ED_region_draw_cb_exit(kcd->ar->type, kcd->draw_handle);