diff options
| author | Gerd Moellmann | 2000-01-30 21:12:53 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-01-30 21:12:53 +0000 |
| commit | 9bda743faa3fd6f9d13527b56a15c7ad1c71a6b1 (patch) | |
| tree | 1f0adb204b0534a8a6e1850e3d3f287eaa7ef596 /src | |
| parent | f00276e3d8f2464335d9fb4e8770da5018dcf512 (diff) | |
| download | emacs-9bda743faa3fd6f9d13527b56a15c7ad1c71a6b1.tar.gz emacs-9bda743faa3fd6f9d13527b56a15c7ad1c71a6b1.zip | |
(x_delete_display): Update next_noop_dpyinfo to ensure
that XTread_socket does not crash by trying to call XNoOp on a
closed display.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xterm.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) | |||
| 13164 | } | 13164 | } |
| 13165 | } | 13165 | } |
| 13166 | 13166 | ||
| 13167 | if (next_noop_dpyinfo == dpyinfo) | ||
| 13168 | next_noop_dpyinfo = dpyinfo->next; | ||
| 13169 | |||
| 13167 | if (x_display_list == dpyinfo) | 13170 | if (x_display_list == dpyinfo) |
| 13168 | x_display_list = dpyinfo->next; | 13171 | x_display_list = dpyinfo->next; |
| 13169 | else | 13172 | else |