changeset 27524:67501e6e8b34

(x_delete_display): Update next_noop_dpyinfo to ensure that XTread_socket does not crash by trying to call XNoOp on a closed display.
author Gerd Moellmann <gerd@gnu.org>
date Sun, 30 Jan 2000 21:12:53 +0000
parents e579cacc3f5d
children d810d00ddd7c
files src/xterm.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Sun Jan 30 19:04:28 2000 +0000
+++ b/src/xterm.c	Sun Jan 30 21:12:53 2000 +0000
@@ -13164,6 +13164,9 @@
 	}
     }
 
+  if (next_noop_dpyinfo == dpyinfo)
+    next_noop_dpyinfo = dpyinfo->next;
+
   if (x_display_list == dpyinfo)
     x_display_list = dpyinfo->next;
   else