changeset 67743:3c879987313f

(xmenu_show): Call inhibit_garbage_collection.
author Richard M. Stallman <rms@gnu.org>
date Thu, 22 Dec 2005 23:30:36 +0000
parents 3dc88cb2b76a
children 1c62bde28518
files src/xmenu.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu Dec 22 19:09:01 2005 +0000
+++ b/src/xmenu.c	Thu Dec 22 23:30:36 2005 +0000
@@ -3343,6 +3343,11 @@
       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);