Fix unreported: Crash when confirms GRAPH_OT_decimate
`dgo` is MEM_freed just before.
This commit is contained in:
parent
aa7c1cdb7f
commit
64116ca15a
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue