diff --git a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc index 254f9444f4f..6f57b0eef90 100644 --- a/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc +++ b/source/blender/editors/sculpt_paint/curves_sculpt_ops.cc @@ -1109,7 +1109,7 @@ static int min_distance_edit_modal(bContext *C, wmOperator *op, const wmEvent *e wm->paintcursors = op_data.orig_paintcursors; ED_region_tag_redraw(region); - MEM_freeN(&op_data); + MEM_delete(&op_data); }; switch (event->type) { @@ -1128,8 +1128,8 @@ static int min_distance_edit_modal(bContext *C, wmOperator *op, const wmEvent *e } case LEFTMOUSE: { if (event->val == KM_PRESS) { - finish(); BKE_brush_tag_unsaved_changes(op_data.brush); + finish(); return OPERATOR_FINISHED; } break;