diff options
| author | Gerd Moellmann | 2001-04-05 13:08:48 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-04-05 13:08:48 +0000 |
| commit | 30ca89f529cd78252144ebf32409813d529aa693 (patch) | |
| tree | 313db0f8cce7eead155209e21d00636ccd8cb3c0 /src/xterm.c | |
| parent | ae5564222b7ce27ea8d9a9d83e2c1ce86f90a943 (diff) | |
| download | emacs-30ca89f529cd78252144ebf32409813d529aa693.tar.gz emacs-30ca89f529cd78252144ebf32409813d529aa693.zip | |
(x_free_frame_resources) [USE_X_TOOLKIT]: Set
f->output_data.x->widget to null after destroying it.
Diffstat (limited to 'src/xterm.c')
| -rw-r--r-- | src/xterm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index f4cce32b5fa..15ba1e9c6dc 100644 --- a/src/xterm.c +++ b/src/xterm.c | |||
| @@ -12821,7 +12821,10 @@ x_free_frame_resources (f) | |||
| 12821 | 12821 | ||
| 12822 | #ifdef USE_X_TOOLKIT | 12822 | #ifdef USE_X_TOOLKIT |
| 12823 | if (f->output_data.x->widget) | 12823 | if (f->output_data.x->widget) |
| 12824 | XtDestroyWidget (f->output_data.x->widget); | 12824 | { |
| 12825 | XtDestroyWidget (f->output_data.x->widget); | ||
| 12826 | f->output_data.x->widget = NULL; | ||
| 12827 | } | ||
| 12825 | free_frame_menubar (f); | 12828 | free_frame_menubar (f); |
| 12826 | #endif /* USE_X_TOOLKIT */ | 12829 | #endif /* USE_X_TOOLKIT */ |
| 12827 | 12830 | ||