diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-06-03 00:59:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-06-03 00:59:00 +0400 |
commit | 0c004723fe60fa93947d9c7ca4ec119a30a32372 (patch) | |
tree | fd438ef48fe10ddf2a17a8f929ded3edd1e05d56 /source/blender/editors/interface/interface_handlers.c | |
parent | c5ed6765b9c46630579be5e43cab74965f0be9da (diff) |
fix [#35434] Segmentation fault switching screen layout from python
(take 2), only free popup handlers.
Diffstat (limited to 'source/blender/editors/interface/interface_handlers.c')
-rw-r--r-- | source/blender/editors/interface/interface_handlers.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c index c5211fe9dd7..22880d8e79c 100644 --- a/source/blender/editors/interface/interface_handlers.c +++ b/source/blender/editors/interface/interface_handlers.c @@ -7662,6 +7662,11 @@ void UI_remove_popup_handlers(ListBase *handlers, uiPopupBlockHandle *popup) WM_event_remove_ui_handler(handlers, ui_handler_popup, ui_handler_remove_popup, popup, FALSE); } +void UI_remove_popup_handlers_all(bContext *C, ListBase *handlers) +{ + WM_event_free_ui_handler_all(C, handlers, ui_handler_popup, ui_handler_remove_popup); +} + bool UI_textbutton_activate_event(const bContext *C, ARegion *ar, const void *rna_poin_data, const char *rna_prop_id) { |