# HG changeset patch # User Teemu Piippo # Date 1418687182 -7200 # Node ID b4caacf567afcf9086867dc9cddca79e70929da8 # Parent 79e5460a8a561842d3917c86ad243354c0f78e8b - I think closing sockets is a good idea 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); +} // ------------------------------------------------------------------------------------------------- //