(xmenu_show): Call inhibit_garbage_collection.

This commit is contained in:
Richard M. Stallman 2005-12-22 23:30:36 +00:00
parent 160bde9cdb
commit d130d1298b

View 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);