From a43309e8d4fc09d31acb4030b13f1c22c9ddf22a Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Mon, 6 Jun 2011 11:04:54 +0000 Subject: Added cancel callbacks to modal operators which allocates memory in invoke callback. This prevents unfreed memory blocks when quiting Bledner with modal operator running. --- source/blender/editors/space_nla/nla_select.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_nla') diff --git a/source/blender/editors/space_nla/nla_select.c b/source/blender/editors/space_nla/nla_select.c index 0f0a4c0ad4c..8ef63b9a83d 100644 --- a/source/blender/editors/space_nla/nla_select.c +++ b/source/blender/editors/space_nla/nla_select.c @@ -333,6 +333,7 @@ void NLA_OT_select_border(wmOperatorType *ot) ot->invoke= WM_border_select_invoke; ot->exec= nlaedit_borderselect_exec; ot->modal= WM_border_select_modal; + ot->cancel= WM_border_select_cancel; ot->poll= nlaop_poll_tweakmode_off; -- cgit v1.2.3