changeset 37212:5c27e50f91d1

(x_free_frame_resources) [USE_X_TOOLKIT]: Set f->output_data.x->widget to null after destroying it.
author Gerd Moellmann <gerd@gnu.org>
date Thu, 05 Apr 2001 13:08:21 +0000
parents afa458ac7a62
children 45009616875b
files src/xterm.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Thu Apr 05 13:07:44 2001 +0000
+++ b/src/xterm.c	Thu Apr 05 13:08:21 2001 +0000
@@ -12821,7 +12821,10 @@
       
 #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 */