diff options
| author | Jason Rumney | 2002-02-23 00:01:34 +0000 |
|---|---|---|
| committer | Jason Rumney | 2002-02-23 00:01:34 +0000 |
| commit | 71f6b2951950a0a42dce3a62796080f606d50f6e (patch) | |
| tree | ab4e5260ba5d75e41d2be9e1a90423f35777311b /src | |
| parent | 1cb8c82e46b304d61f05233634715d6ba5437339 (diff) | |
| download | emacs-71f6b2951950a0a42dce3a62796080f606d50f6e.tar.gz emacs-71f6b2951950a0a42dce3a62796080f606d50f6e.zip | |
(menubar_selection_callback): Free the menu and
clear the menu_command_in_progress flag.
Diffstat (limited to 'src')
| -rw-r--r-- | src/w32menu.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/w32menu.c b/src/w32menu.c index ba15125731b..ee1bbc54209 100644 --- a/src/w32menu.c +++ b/src/w32menu.c | |||
| @@ -159,6 +159,7 @@ static void single_keymap_panes (); | |||
| 159 | static void single_menu_item (); | 159 | static void single_menu_item (); |
| 160 | static void list_of_panes (); | 160 | static void list_of_panes (); |
| 161 | static void list_of_items (); | 161 | static void list_of_items (); |
| 162 | void w32_free_menu_strings (HWND); | ||
| 162 | 163 | ||
| 163 | /* This holds a Lisp vector that holds the results of decoding | 164 | /* This holds a Lisp vector that holds the results of decoding |
| 164 | the keymaps or alist-of-alists that specify a menu. | 165 | the keymaps or alist-of-alists that specify a menu. |
| @@ -1035,11 +1036,19 @@ menubar_selection_callback (FRAME_PTR f, void * client_data) | |||
| 1035 | buf.arg = entry; | 1036 | buf.arg = entry; |
| 1036 | kbd_buffer_store_event (&buf); | 1037 | kbd_buffer_store_event (&buf); |
| 1037 | 1038 | ||
| 1039 | /* Free memory used by owner-drawn and help-echo strings. */ | ||
| 1040 | w32_free_menu_strings (FRAME_W32_WINDOW (f)); | ||
| 1041 | f->output_data.w32->menu_command_in_progress = 0; | ||
| 1042 | f->output_data.w32->menubar_active = 0; | ||
| 1038 | return; | 1043 | return; |
| 1039 | } | 1044 | } |
| 1040 | i += MENU_ITEMS_ITEM_LENGTH; | 1045 | i += MENU_ITEMS_ITEM_LENGTH; |
| 1041 | } | 1046 | } |
| 1042 | } | 1047 | } |
| 1048 | /* Free memory used by owner-drawn and help-echo strings. */ | ||
| 1049 | w32_free_menu_strings (FRAME_W32_WINDOW (f)); | ||
| 1050 | f->output_data.w32->menu_command_in_progress = 0; | ||
| 1051 | f->output_data.w32->menubar_active = 0; | ||
| 1043 | } | 1052 | } |
| 1044 | 1053 | ||
| 1045 | /* Allocate a widget_value, blocking input. */ | 1054 | /* Allocate a widget_value, blocking input. */ |