comparison 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
comparison
equal deleted inserted replaced
36456:1474cd438ac1 36457:b0905c60d1ab
1889 1889
1890 if (menubar_widget) 1890 if (menubar_widget)
1891 { 1891 {
1892 BLOCK_INPUT; 1892 BLOCK_INPUT;
1893 lw_destroy_all_widgets ((LWLIB_ID) f->output_data.x->id); 1893 lw_destroy_all_widgets ((LWLIB_ID) f->output_data.x->id);
1894 f->output_data.x->menubar_widget = NULL;
1894 UNBLOCK_INPUT; 1895 UNBLOCK_INPUT;
1895 } 1896 }
1896 } 1897 }
1897 1898
1898 #endif /* USE_X_TOOLKIT */ 1899 #endif /* USE_X_TOOLKIT */