Added cancel callbacks to modal operators which allocates memory

in invoke callback. This prevents unfreed memory blocks when quiting
Bledner with modal operator running.
This commit is contained in:
2011-06-06 11:04:54 +00:00
parent 4d0026f7b9
commit a43309e8d4
26 changed files with 242 additions and 19 deletions

View File

@@ -206,6 +206,7 @@ void LOGIC_OT_links_cut(wmOperatorType *ot)
ot->invoke= WM_gesture_lines_invoke;
ot->modal= WM_gesture_lines_modal;
ot->exec= cut_links_exec;
ot->cancel= WM_gesture_lines_cancel;
ot->poll= ED_operator_logic_active;