diff options
author | Justin Berger <j.david.berger@gmail.com> | 2017-07-19 18:47:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-08-31 19:35:03 (GMT) |
commit | 546a58746967d10996075ca47a7198c1c375fdb2 (patch) | |
tree | 34c4e2f757e1cbeac3dc07c1dd5d06398821ba68 /Source/cmServerConnection.cxx | |
parent | 9bad65940c87f594a5f1007019d4b187068dbce0 (diff) | |
download | CMake-546a58746967d10996075ca47a7198c1c375fdb2.zip CMake-546a58746967d10996075ca47a7198c1c375fdb2.tar.gz CMake-546a58746967d10996075ca47a7198c1c375fdb2.tar.bz2 |
server: Fixed mismatched new/delete; added proper shutdown procedure
Diffstat (limited to 'Source/cmServerConnection.cxx')
-rw-r--r-- | Source/cmServerConnection.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmServerConnection.cxx b/Source/cmServerConnection.cxx index 4891131..d6bf1a8 100644 --- a/Source/cmServerConnection.cxx +++ b/Source/cmServerConnection.cxx @@ -62,14 +62,14 @@ bool cmStdIoConnection::OnConnectionShuttingDown() if (usesTty) { uv_read_stop(reinterpret_cast<uv_stream_t*>(this->Input.tty)); uv_close(reinterpret_cast<uv_handle_t*>(this->Input.tty), - &on_close_delete); + &on_close_delete<uv_tty_t>); uv_close(reinterpret_cast<uv_handle_t*>(this->Output.tty), - &on_close_delete); + &on_close_delete<uv_tty_t>); } else { uv_close(reinterpret_cast<uv_handle_t*>(this->Input.pipe), - &on_close_delete); + &on_close_delete<uv_pipe_t>); uv_close(reinterpret_cast<uv_handle_t*>(this->Output.pipe), - &on_close_delete); + &on_close_delete<uv_pipe_t>); } return true; |