mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-19 10:22:27 +00:00
(xmenu_show): Call inhibit_garbage_collection.
This commit is contained in:
parent
160bde9cdb
commit
d130d1298b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user