# HG changeset patch # User Richard M. Stallman # Date 1135294236 0 # Node ID 3c879987313fa655207e2c0e3e04c3452aa6545b # Parent 3dc88cb2b76ac84f6db4ecdb29fb5c7074a82c05 (xmenu_show): Call inhibit_garbage_collection. diff -r 3dc88cb2b76a -r 3c879987313f src/xmenu.c --- a/src/xmenu.c Thu Dec 22 19:09:01 2005 +0000 +++ b/src/xmenu.c Thu Dec 22 23:30:36 2005 +0000 @@ -3343,6 +3343,11 @@ 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);