* xterm.c (x_delete_terminal): Plug file descriptor leak.
Fixes: debbugs:17691
This commit is contained in:
parent
6d9d9cde2f
commit
b110679002
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2014-08-07 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
* xterm.c (x_delete_terminal): Plug file descriptor leak (Bug#17691).
|
||||
|
||||
2014-08-07 Reuben Thomas <rrt@sc3d.org>
|
||||
|
||||
Refer to MS-DOS using the same name everywhere.
|
||||
|
|
|
@ -11329,7 +11329,10 @@ x_delete_terminal (struct terminal *terminal)
|
|||
|
||||
/* No more input on this descriptor. */
|
||||
if (0 <= dpyinfo->connection)
|
||||
delete_keyboard_wait_descriptor (dpyinfo->connection);
|
||||
{
|
||||
delete_keyboard_wait_descriptor (dpyinfo->connection);
|
||||
emacs_close (dpyinfo->connection);
|
||||
}
|
||||
|
||||
/* Mark as dead. */
|
||||
dpyinfo->display = NULL;
|
||||
|
|
Loading…
Add table
Reference in a new issue