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
parent 026cb6bdeb
commit 44e02651ab

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