Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-06-12 00:58:16 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-06-12 00:58:16 +0400
commit7977078227d6da77e294dd860f4685387f0bae56 (patch)
treea85f5b307ace69bccd6a635c5b1b7a714cfa643a /source/blender/editors/mask
parent234a0d8c513e0124ba569868c501668519ab958b (diff)
fix for using freed memory with mask point slide
-- This line, and those below, will be ignored-- M source/blender/editors/mask/mask_ops.c
Diffstat (limited to 'source/blender/editors/mask')
-rw-r--r--source/blender/editors/mask/mask_ops.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source/blender/editors/mask/mask_ops.c b/source/blender/editors/mask/mask_ops.c
index 67fd57ed50b..7c94b79010c 100644
--- a/source/blender/editors/mask/mask_ops.c
+++ b/source/blender/editors/mask/mask_ops.c
@@ -758,11 +758,10 @@ static int slide_point_modal(bContext *C, wmOperator *op, wmEvent *event)
}
}
- free_slide_point_data(op->customdata);
-
WM_event_add_notifier(C, NC_MASK | NA_EDITED, data->mask);
DAG_id_tag_update(&data->mask->id, 0);
+ free_slide_point_data(op->customdata); /* keep this last! */
return OPERATOR_FINISHED;
}
@@ -771,11 +770,10 @@ static int slide_point_modal(bContext *C, wmOperator *op, wmEvent *event)
case ESCKEY:
cancel_slide_point(op->customdata);
- free_slide_point_data(op->customdata);
-
WM_event_add_notifier(C, NC_MASK | NA_EDITED, data->mask);
DAG_id_tag_update(&data->mask->id, 0);
+ free_slide_point_data(op->customdata); /* keep this last! */
return OPERATOR_CANCELLED;
}