changeset 36457:b0905c60d1ab

(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.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 01 Mar 2001 15:28:26 +0000
parents 1474cd438ac1
children 7f336893d2e5
files src/xmenu.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xmenu.c	Thu Mar 01 14:52:03 2001 +0000
+++ b/src/xmenu.c	Thu Mar 01 15:28:26 2001 +0000
@@ -1891,6 +1891,7 @@
     {
       BLOCK_INPUT;
       lw_destroy_all_widgets ((LWLIB_ID) f->output_data.x->id);
+      f->output_data.x->menubar_widget = NULL;
       UNBLOCK_INPUT;
     }
 }