From 0aff42a4bc7021a8aaa35eeb65fb06630dce4e30 Mon Sep 17 00:00:00 2001 From: Mattes D Date: Wed, 18 Mar 2015 13:49:35 +0100 Subject: Network: Close the UDP endpoint in destructor. --- src/OSSupport/UDPEndpointImpl.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/OSSupport/UDPEndpointImpl.cpp') diff --git a/src/OSSupport/UDPEndpointImpl.cpp b/src/OSSupport/UDPEndpointImpl.cpp index ece521ab8..31ca107ce 100644 --- a/src/OSSupport/UDPEndpointImpl.cpp +++ b/src/OSSupport/UDPEndpointImpl.cpp @@ -197,6 +197,15 @@ cUDPEndpointImpl::cUDPEndpointImpl(UInt16 a_Port, cUDPEndpoint::cCallbacks & a_C +cUDPEndpointImpl::~cUDPEndpointImpl() +{ + Close(); +} + + + + + void cUDPEndpointImpl::Close(void) { if (m_Port == 0) -- cgit v1.2.3