(x_free_frame_resources) [USE_X_TOOLKIT]: Set

f->output_data.x->widget to null after destroying it.
This commit is contained in:
Gerd Moellmann 2001-04-05 13:08:48 +00:00
parent ae5564222b
commit 30ca89f529
2 changed files with 13 additions and 1 deletions

View file

@ -1,5 +1,14 @@
2001-04-05 Gerd Moellmann <gerd@gnu.org>
* xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
(syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
* xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
shell widget's position only if it is non-null.
* xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Set
f->output_data.x->widget to null after destroying it.
* fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
FILENAME to bring it in synch with the documentation.

View file

@ -12821,7 +12821,10 @@ x_free_frame_resources (f)
#ifdef USE_X_TOOLKIT
if (f->output_data.x->widget)
XtDestroyWidget (f->output_data.x->widget);
{
XtDestroyWidget (f->output_data.x->widget);
f->output_data.x->widget = NULL;
}
free_frame_menubar (f);
#endif /* USE_X_TOOLKIT */