From 0c05dcd31a387c1876bbb2efccb0a9cca88b9974 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 1 Mar 2001 15:28:26 +0000 Subject: (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. --- src/xmenu.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/xmenu.c') 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; } } -- cgit v1.2.1