Fix for crash for 'Edit Source'

was accessing freed menu region.
This commit is contained in:
Campbell Barton 2015-01-04 22:22:37 +11:00 committed by Sergey Sharybin
parent ff09547f80
commit b8b7bd0e6a
1 changed files with 1 additions and 0 deletions

View File

@ -9209,6 +9209,7 @@ static int ui_popup_handler(bContext *C, const wmEvent *event, void *userdata)
ui_popup_block_free(C, menu);
UI_popup_handlers_remove(&win->modalhandlers, menu);
CTX_wm_menu_set(C, NULL);
#ifdef USE_DRAG_TOGGLE
{