Mercurial > emacs
diff src/xmenu.c @ 67743:3c879987313f
(xmenu_show): Call inhibit_garbage_collection.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Thu, 22 Dec 2005 23:30:36 +0000 |
| parents | 7ae48da37b8f |
| children | 3bd95f4f2941 d0eee3282e6b 7beb78bc1f8e |
line wrap: on
line diff
--- 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);
