mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-20 11:36:10 +00:00
LibCore: close socket on LocalServer dtor
This commit is contained in:
parent
9150f3c266
commit
d9470bdae7
Notes:
sideshowbarker
2024-07-19 04:08:21 +09:00
Author: https://github.com/tryfinally Commit: https://github.com/SerenityOS/serenity/commit/d9470bdae76 Pull-request: https://github.com/SerenityOS/serenity/pull/3045 Reviewed-by: https://github.com/elcuco
1 changed files with 2 additions and 0 deletions
|
@ -45,6 +45,8 @@ LocalServer::LocalServer(Object* parent)
|
|||
|
||||
LocalServer::~LocalServer()
|
||||
{
|
||||
if (m_fd >= 0)
|
||||
::close(m_fd);
|
||||
}
|
||||
|
||||
bool LocalServer::take_over_from_system_server()
|
||||
|
|
Loading…
Add table
Reference in a new issue