diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-02-11 08:43:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-02-11 08:43:49 +0400 |
commit | 0ac2f6e7d73bda112db13205d4b91ad98fa975ee (patch) | |
tree | 6e0dc34c947a461b846dba16dc220e48a288414d /source/blender/editors/sculpt_paint/paint_vertex.c | |
parent | 20139348785dcd23ebe00db25f5e5726a23c685f (diff) |
fix for own bug - memory leak when cancelling weight gradient tool
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_vertex.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_vertex.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c index 956f8d2c136..326adefb4cc 100644 --- a/source/blender/editors/sculpt_paint/paint_vertex.c +++ b/source/blender/editors/sculpt_paint/paint_vertex.c @@ -3182,6 +3182,7 @@ static int paint_weight_gradient_modal(bContext *C, wmOperator *op, wmEvent *eve VPaint *wp = ts->wpaint; Object *ob = CTX_data_active_object(C); Mesh *me = ob->data; + BKE_defvert_array_free_elems(me->dvert, me->totvert); BKE_defvert_array_copy(me->dvert, wp->wpaint_prev, me->totvert); free_wpaint_prev(wp); |