(xmenu_show): Call inhibit_garbage_collection.
This commit is contained in:
parent
160bde9cdb
commit
d130d1298b
1 changed files with 5 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue