fix memory leak in validating mesh and remove unneeded knife operator settings store.

This commit is contained in:
Campbell Barton 2012-04-26 15:20:26 +00:00
parent ec6c3f632e
commit 6d2cd24010
2 changed files with 2 additions and 4 deletions

@ -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)

@ -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);