From 9bda743faa3fd6f9d13527b56a15c7ad1c71a6b1 Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Sun, 30 Jan 2000 21:12:53 +0000 Subject: [PATCH] (x_delete_display): Update next_noop_dpyinfo to ensure that XTread_socket does not crash by trying to call XNoOp on a closed display. --- src/xterm.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/xterm.c b/src/xterm.c index 3a1652e10d0..abea59684a8 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -13164,6 +13164,9 @@ x_delete_display (dpyinfo) } } + if (next_noop_dpyinfo == dpyinfo) + next_noop_dpyinfo = dpyinfo->next; + if (x_display_list == dpyinfo) x_display_list = dpyinfo->next; else -- 2.39.5