mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
CSocket: Close the underlying socket on destruction
Otherwise we leak the file descriptor.
This commit is contained in:
parent
e58b734363
commit
948c2657d6
Notes:
sideshowbarker
2024-07-19 12:53:14 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/948c2657d6f
1 changed files with 1 additions and 0 deletions
|
@ -18,6 +18,7 @@ CSocket::CSocket(Type type, CObject* parent)
|
|||
|
||||
CSocket::~CSocket()
|
||||
{
|
||||
close();
|
||||
}
|
||||
|
||||
bool CSocket::connect(const String& hostname, int port)
|
||||
|
|
Loading…
Reference in a new issue