From: Richard M. Stallman Date: Thu, 22 Dec 2005 23:30:36 +0000 (+0000) Subject: (xmenu_show): Call inhibit_garbage_collection. X-Git-Tag: emacs-pretest-22.0.90~5127 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d130d1298b2d704d2ab8444e369c1989976502be;p=emacs.git (xmenu_show): Call inhibit_garbage_collection. --- diff --git a/src/xmenu.c b/src/xmenu.c index c6640916f32..51867f0478f 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -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);