Bugfix #27058
authorTon Roosendaal <ton@blender.org>
Wed, 20 Apr 2011 11:15:58 +0000 (11:15 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 20 Apr 2011 11:15:58 +0000 (11:15 +0000)
commit069a3c193c19842d126579e22237da3880333ac5
treeebd88357900973d44f1dd6dc9613508233b6aba5
parent141be02c90cbdb2f1d8cd2702ea79e3b3e9590f7
Bugfix #27058

Top bar: Add -> Mesh -> UV Sphere + Enter crashed.
It didn't crash with leftmouse, but that was coincidentally working.

Menus were freeing modal handlers in Window, while handlers were still
in use. Fix provides to tag handlers for being freed now.

Will add on my attention list for more elaborate checking work here, for
upcoming 2.57a I rather stick to minimal change in code here.
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_panel.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/wm_event_system.h