summaryrefslogtreecommitdiff
path: root/src/xmenu.c
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-03-01 15:28:26 +0000
committerGerd Moellmann <gerd@gnu.org>2001-03-01 15:28:26 +0000
commit0c05dcd31a387c1876bbb2efccb0a9cca88b9974 (patch)
treecda1519b9aec8ae9172464f892137275309cc7d3 /src/xmenu.c
parent8a673c10210cbf09f85e71d043c74853ceabf821 (diff)
downloademacs-0c05dcd31a387c1876bbb2efccb0a9cca88b9974.tar.gz
(free_frame_menubar): Set the frame's menubar_widget to
NULL after destroying it, otherwise XTread_socket can access a destroyed widget when input is unblocked.
Diffstat (limited to 'src/xmenu.c')
-rw-r--r--src/xmenu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c
index 224bc0bb0b8..1c39e86ed26 100644
--- a/src/xmenu.c
+++ b/src/xmenu.c
@@ -1891,6 +1891,7 @@ free_frame_menubar (f)
{
BLOCK_INPUT;
lw_destroy_all_widgets ((LWLIB_ID) f->output_data.x->id);
+ f->output_data.x->menubar_widget = NULL;
UNBLOCK_INPUT;
}
}