]> git.eshelyaron.com Git - emacs.git/commitdiff
* xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
authorJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Aug 2004 16:57:36 +0000 (16:57 +0000)
committerJan Djärv <jan.h.d@swipnet.se>
Fri, 27 Aug 2004 16:57:36 +0000 (16:57 +0000)
from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.

src/ChangeLog
src/xmenu.c

index fd12877d2ce0e34544e4ecb08b7dd598f12354f9..7779dddb124884fde4388499ab7eb710f1d0837f 100644 (file)
@@ -1,5 +1,8 @@
 2004-08-27  Jan Dj\e,Ad\e(Brv  <jan.h.d@swipnet.se>
 
+       * xmenu.c (set_frame_menubar): Reintroduce inhibit_garbage_collection
+       from 2002-07-15T00:01:34Z!raeburn@raeburn.org so that strings from ENCODE_UTF_8 isn't GC:ed before used.
+
        * gtkutil.c (xg_create_frame_widgets): Compensate for tool bar when
        tool bar items is 0.
 
index 473e29de88d37e0e5f39b9bd244c02ad0afe0c66..7ef0e8c857db7ed1e1361d08596097866dd14e23 100644 (file)
@@ -1930,6 +1930,7 @@ set_frame_menubar (f, first_time, deep_p)
       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)