diff -r 79e5460a8a56 -r b4caacf567af sources/network/udpsocket.cpp --- a/sources/network/udpsocket.cpp Tue Dec 16 00:55:03 2014 +0200 +++ b/sources/network/udpsocket.cpp Tue Dec 16 01:46:22 2014 +0200 @@ -34,6 +34,7 @@ #include #include #include +#include #include "udpsocket.h" #include "../huffman/huffman.h" @@ -46,7 +47,10 @@ // ----------------------------------------------------------------------------- // -UDPSocket::~UDPSocket() {} +UDPSocket::~UDPSocket() +{ + close (m_socket); +} // ------------------------------------------------------------------------------------------------- //