diff --git a/WindowServer/WSClientConnection.cpp b/WindowServer/WSClientConnection.cpp index b178a58ed1..841d58a7c9 100644 --- a/WindowServer/WSClientConnection.cpp +++ b/WindowServer/WSClientConnection.cpp @@ -49,6 +49,8 @@ WSClientConnection::WSClientConnection(int fd) WSClientConnection::~WSClientConnection() { s_connections->remove(m_client_id); + int rc = close(m_fd); + ASSERT(rc == 0); } void WSClientConnection::post_error(const String& error_message)