From d130d1298b2d704d2ab8444e369c1989976502be Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 22 Dec 2005 23:30:36 +0000 Subject: [PATCH] (xmenu_show): Call inhibit_garbage_collection. --- src/xmenu.c | 5 +++++ 1 file changed, 5 insertions(+) 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); -- 2.39.2