]> git.eshelyaron.com Git - emacs.git/commitdiff
(free_frame_menubar): Set the frame's menubar_widget to
authorGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 15:28:26 +0000 (15:28 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 1 Mar 2001 15:28:26 +0000 (15:28 +0000)
NULL after destroying it, otherwise XTread_socket can access a
destroyed widget when input is unblocked.

src/xmenu.c

index 224bc0bb0b8ee6fe614e776cdcf8f02fe0d8d30e..1c39e86ed262e3f2202885e02930328b4c53231c 100644 (file)
@@ -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;
     }
 }