diff src/xmenu.c @ 56805:27ebdb6b3098

* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection from 1.233 so that strings from ENCODE_UTF_8 isn't GC:ed before used.
author Jan Djärv <jan.h.d@swipnet.se>
date Fri, 27 Aug 2004 16:57:36 +0000
parents 5a46a8191136
children 5817080daeba
line wrap: on
line diff
--- a/src/xmenu.c	Fri Aug 27 16:50:02 2004 +0000
+++ b/src/xmenu.c	Fri Aug 27 16:57:36 2004 +0000
@@ -1930,6 +1930,7 @@
       FRAME_MENU_BAR_ITEMS (f) = menu_bar_items (FRAME_MENU_BAR_ITEMS (f));
 
       items = FRAME_MENU_BAR_ITEMS (f);
+      inhibit_garbage_collection ();
 
       /* Save the frame's previous menu bar contents data.  */
       if (previous_menu_items_used)