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:
authormano-wii <germano.costa@ig.com.br>2019-12-17 18:42:37 +0300
committermano-wii <germano.costa@ig.com.br>2019-12-17 18:42:48 +0300
commit64116ca15a474943ff903f4751cb529054e87681 (patch)
treeeb1844614e4260fb7a731bd347ce82a3d215cb16 /source/blender/editors/space_graph/graph_edit.c
parentaa7c1cdb7f165c564622ee3231dc75f34d80dd16 (diff)
Fix unreported: Crash when confirms GRAPH_OT_decimate
`dgo` is MEM_freed just before.
Diffstat (limited to 'source/blender/editors/space_graph/graph_edit.c')
-rw-r--r--source/blender/editors/space_graph/graph_edit.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_graph/graph_edit.c b/source/blender/editors/space_graph/graph_edit.c
index 4d2772aabee..03df93e4c8a 100644
--- a/source/blender/editors/space_graph/graph_edit.c
+++ b/source/blender/editors/space_graph/graph_edit.c
@@ -1409,6 +1409,8 @@ static void decimate_exit(bContext *C, wmOperator *op)
if (dgo == NULL) {
return;
}
+
+ ScrArea *sa = dgo->sa;
LinkData *link;
for (link = dgo->bezt_arr_list.first; link != NULL; link = link->next) {
@@ -1422,7 +1424,7 @@ static void decimate_exit(bContext *C, wmOperator *op)
/* Return to normal cursor and header status. */
WM_cursor_modal_restore(win);
- ED_area_status_text(dgo->sa, NULL);
+ ED_area_status_text(sa, NULL);
/* cleanup */
op->customdata = NULL;