aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFred Pierresteguy1994-02-01 17:33:14 +0000
committerFred Pierresteguy1994-02-01 17:33:14 +0000
commite021605ff3f7e83cef81d7e7e66a41f6f7732fc4 (patch)
tree46ffaa479bd1e1ac1b38b640cc26a5468170d181 /src
parent5a8d870ba9d589f455cfb424f77cc18a8447621a (diff)
downloademacs-e021605ff3f7e83cef81d7e7e66a41f6f7732fc4.tar.gz
emacs-e021605ff3f7e83cef81d7e7e66a41f6f7732fc4.zip
(x_set_menu_bar_lines): Test also menubar_widget before calling
XtDestroyWidget.
Diffstat (limited to 'src')
-rw-r--r--src/xfns.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 4b5de9329c9..4ffd39f7df4 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1076,7 +1076,8 @@ x_set_menu_bar_lines (f, value, oldval)
1076 FRAME_EXTERNAL_MENU_BAR (f) = 1; 1076 FRAME_EXTERNAL_MENU_BAR (f) = 1;
1077 else 1077 else
1078 { 1078 {
1079 if (FRAME_EXTERNAL_MENU_BAR (f) == 1) 1079 if (FRAME_EXTERNAL_MENU_BAR (f) == 1
1080 && f->display.x->menubar_widget)
1080 XtDestroyWidget (f->display.x->menubar_widget); 1081 XtDestroyWidget (f->display.x->menubar_widget);
1081 FRAME_EXTERNAL_MENU_BAR (f) = 0; 1082 FRAME_EXTERNAL_MENU_BAR (f) = 0;
1082 f->display.x->menubar_widget = 0; 1083 f->display.x->menubar_widget = 0;