]> git.eshelyaron.com Git - emacs.git/commitdiff
(xmenu_show): Call inhibit_garbage_collection.
authorRichard M. Stallman <rms@gnu.org>
Thu, 22 Dec 2005 23:30:36 +0000 (23:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 22 Dec 2005 23:30:36 +0000 (23:30 +0000)
src/xmenu.c

index c6640916f3237f7e587c226c97784a552dc40074..51867f0478f9cb9d25160da1628fab7a045b44f7 100644 (file)
@@ -3343,6 +3343,11 @@ xmenu_show (f, x, y, for_click, keymaps, title, error)
       return Qnil;
     }
 
+  /* Don't GC while we prepare and show the menu,
+     because we give the oldxmenu library pointers to the
+     contents of strings.  */
+  inhibit_garbage_collection ();
+
 #ifdef HAVE_X_WINDOWS
   /* Adjust coordinates to relative to the outer (window manager) window.  */
   x += FRAME_OUTER_TO_INNER_DIFF_X (f);