# HG changeset patch # User Gerd Moellmann # Date 983460506 0 # Node ID b0905c60d1ab2e4880e3b425f327552359d9f93e # Parent 1474cd438ac1d7bd8b3fbc6eae4558ff243ab037 (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. diff -r 1474cd438ac1 -r b0905c60d1ab src/xmenu.c --- 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; } }