]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fx_popup_menu): Call w32_free_menu_strings when
authorJason Rumney <jasonr@gnu.org>
Sun, 12 Mar 2006 16:29:25 +0000 (16:29 +0000)
committerJason Rumney <jasonr@gnu.org>
Sun, 12 Mar 2006 16:29:25 +0000 (16:29 +0000)
finished with the menu.

src/w32menu.c

index 57db01ac9e928fc074a962d8d02d5489a996a864..389e6c5b8562822d7fa065d7537779dc8c98acda 100644 (file)
@@ -819,8 +819,10 @@ cached information about equivalent key sequences.  */)
     }
 
 #ifdef HAVE_MENUS
-  /* If resources from a previous popup menu exist yet, does nothing
-     until the `menu_free_timer' has freed them (see w32fns.c).
+  /* If resources from a previous popup menu still exist, does nothing
+     until the `menu_free_timer' has freed them (see w32fns.c). This
+     can occur if you press ESC or click outside a menu without selecting
+     a menu item.
   */
   if (current_popup_menu)
     {
@@ -837,6 +839,8 @@ cached information about equivalent key sequences.  */)
   UNBLOCK_INPUT;
 
   discard_menu_items ();
+  w32_free_menu_strings (FRAME_W32_WINDOW (f));
+
 #endif /* HAVE_MENUS */
 
   UNGCPRO;