aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2007-02-22 23:15:08 +0000
committerJason Rumney2007-02-22 23:15:08 +0000
commit563cd4c00818b4f1ec03ecdeba468c55ef32b89c (patch)
tree5182d4ab7aac2d353ed5c0bd3da66141035346ad /src
parent90816b8607e4864bbab37ce14e33dca8e0f94246 (diff)
downloademacs-563cd4c00818b4f1ec03ecdeba468c55ef32b89c.tar.gz
emacs-563cd4c00818b4f1ec03ecdeba468c55ef32b89c.zip
* w32menu.c (Fx_popup_menu): Don't free menu strings here.
(w32_menu_show): Do it here instead.
Diffstat (limited to 'src')
-rw-r--r--src/w32menu.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32menu.c b/src/w32menu.c
index b977b90e52d..a0aef4b58dd 100644
--- a/src/w32menu.c
+++ b/src/w32menu.c
@@ -835,7 +835,6 @@ cached information about equivalent key sequences. */)
835 UNBLOCK_INPUT; 835 UNBLOCK_INPUT;
836 836
837 discard_menu_items (); 837 discard_menu_items ();
838 w32_free_menu_strings (FRAME_W32_WINDOW (f));
839 838
840#endif /* HAVE_MENUS */ 839#endif /* HAVE_MENUS */
841 840
@@ -1936,6 +1935,9 @@ w32_menu_show (f, x, y, for_click, keymaps, title, error)
1936 1935
1937 DestroyMenu (menu); 1936 DestroyMenu (menu);
1938 1937
1938 /* Free the owner-drawn and help-echo menu strings. */
1939 w32_free_menu_strings (FRAME_W32_WINDOW (f));
1940
1939 /* Find the selected item, and its pane, to return 1941 /* Find the selected item, and its pane, to return
1940 the proper value. */ 1942 the proper value. */
1941 if (menu_item_selection != 0) 1943 if (menu_item_selection != 0)