GUAC-1452: Ensure pipe is flushed and closed if terminal is destroyed.

This commit is contained in:
Michael Jumper 2016-01-13 18:07:37 -08:00
parent ff557a7f01
commit 4bc5ebe7da

View File

@ -372,6 +372,9 @@ guac_terminal* guac_terminal_create(guac_client* client,
void guac_terminal_free(guac_terminal* term) {
/* Close and flush any open pipe stream */
guac_terminal_pipe_stream_close(term);
/* Close terminal output pipe */
close(term->stdout_pipe_fd[1]);
close(term->stdout_pipe_fd[0]);