+2008-06-09 Jason Rumney <jasonr@gnu.org>
+
+ * w32menu.c (Fx_popup_menu): Unwind protect while building menu.
+
2008-06-09 Jason Rumney <jasonr@gnu.org>
Changes to w32 files related to the move of common menu code
Lisp_Object x, y, window;
int keymaps = 0;
int for_click = 0;
+ int specpdl_count = SPECPDL_INDEX ();
struct gcpro gcpro1;
#ifdef HAVE_MENUS
Vmenu_updating_frame = Qnil;
#endif /* HAVE_MENUS */
+ record_unwind_protect (unuse_menu_items, Qnil);
+
title = Qnil;
GCPRO1 (title);
keymaps = 0;
}
+ unbind_to (specpdl_count, Qnil);
+
if (NILP (position))
{
discard_menu_items ();