summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorJan Djärv <jan.h.d@swipnet.se>2004-08-30 20:14:21 +0000
committerJan Djärv <jan.h.d@swipnet.se>2004-08-30 20:14:21 +0000
commitec867797797c80ba00a29af18fb9c38f137a0a6b (patch)
tree005e3a290fe74eaa581d4731cd411cdbd50887fb /src/xmenu.c
parent2bf436c3bb916cc9368dafeb54d1cab0196e15cf (diff)
downloademacs-ec867797797c80ba00a29af18fb9c38f137a0a6b.tar.gz
Don't call ENCODE_MENU_STRING on top level menu names, GC may occur.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c4
1 files changed, 2 insertions, 2 deletions
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;