From ec867797797c80ba00a29af18fb9c38f137a0a6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Dj=C3=A4rv?= Date: Mon, 30 Aug 2004 20:14:21 +0000 Subject: Don't call ENCODE_MENU_STRING on top level menu names, GC may occur. --- src/xmenu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xmenu.c') diff --git a/src/xmenu.c b/src/xmenu.c index 2eed2b4987e..229f9c37de7 100644 --- a/src/xmenu.c +++ b/src/xmenu.c @@ -2056,7 +2056,7 @@ set_frame_menubar (f, first_time, deep_p) string = XVECTOR (items)->contents[i + 1]; if (NILP (string)) break; - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); update_submenu_strings (wv->contents); wv = wv->next; } @@ -2088,7 +2088,7 @@ set_frame_menubar (f, first_time, deep_p) break; wv = xmalloc_widget_value (); - wv->name = (char *) SDATA (ENCODE_MENU_STRING (string)); + wv->name = (char *) SDATA (string); wv->value = 0; wv->enabled = 1; wv->button_type = BUTTON_TYPE_NONE; -- cgit v1.2.1