diff options
| author | Gerd Moellmann | 2001-03-01 15:28:26 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-03-01 15:28:26 +0000 |
| commit | 0c05dcd31a387c1876bbb2efccb0a9cca88b9974 (patch) | |
| tree | cda1519b9aec8ae9172464f892137275309cc7d3 /src | |
| parent | 8a673c10210cbf09f85e71d043c74853ceabf821 (diff) | |
| download | emacs-0c05dcd31a387c1876bbb2efccb0a9cca88b9974.tar.gz emacs-0c05dcd31a387c1876bbb2efccb0a9cca88b9974.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xmenu.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xmenu.c b/src/xmenu.c index 224bc0bb0b8..1c39e86ed26 100644 --- a/src/xmenu.c +++ b/src/xmenu.c | |||
| @@ -1891,6 +1891,7 @@ free_frame_menubar (f) | |||
| 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 | } |