diff src/xmenu.c @ 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 0cee3a77c592
children 568504879a41
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;
     }
 }