diff options
author | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-24 14:54:26 +0400 |
---|---|---|
committer | Gaia Clary <gaia.clary@machinimatrix.org> | 2013-05-24 14:54:26 +0400 |
commit | 69515adbc97f58a9d3b7f033e38d5da80c67964a (patch) | |
tree | acadd95d262294fc5161a3125eca95adf05ac8da /source/blender/editors | |
parent | 31ab91991c3c55095f22cb2f78582bd1fb607900 (diff) |
fixed memory leak in weight tool: levels
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 0ebb90865cd..6bef169c4ed 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -2938,6 +2938,8 @@ static int vertex_group_levels_exec(bContext *C, wmOperator *op) bool *vgroup_validmap = vgroup_subset_from_select_type(ob, subset_type, &vgroup_tot, &subset_count); vgroup_levels_subset(ob, vgroup_validmap, vgroup_tot, subset_count, offset, gain); + + MEM_freeN(vgroup_validmap); DAG_id_tag_update(&ob->id, OB_RECALC_DATA); WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob); |