diff options
Diffstat (limited to 'src/sockets.cpp')
-rw-r--r-- | src/sockets.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sockets.cpp b/src/sockets.cpp index b85255523..646ee261f 100644 --- a/src/sockets.cpp +++ b/src/sockets.cpp @@ -25,11 +25,18 @@ SocketEngineBase::SocketEngineBase() SocketEngineBase::~SocketEngineBase() { + for (std::map<int, Socket *>::const_iterator it = this->Sockets.begin(), it_end = this->Sockets.end(); it != it_end; ++it) + delete it->second; + this->Sockets.clear(); #ifdef _WIN32 WSACleanup(); #endif } +Socket::Socket() +{ +} + /** Constructor * @param nsock The socket * @param nIPv6 IPv6? |