diff --git a/ecal/core/src/io/udp_receiver.cpp b/ecal/core/src/io/udp_receiver.cpp index 012f596006..e479b57f36 100644 --- a/ecal/core/src/io/udp_receiver.cpp +++ b/ecal/core/src/io/udp_receiver.cpp @@ -54,6 +54,11 @@ namespace eCAL #endif //ECAL_NPCAP_SUPPORT } + CUDPReceiver::~CUDPReceiver() + { + Destroy(); + } + bool CUDPReceiver::Create(const SReceiverAttr& attr_) { if (m_socket_impl) return false; diff --git a/ecal/core/src/io/udp_receiver.h b/ecal/core/src/io/udp_receiver.h index 6a976bde6f..399a3751d2 100644 --- a/ecal/core/src/io/udp_receiver.h +++ b/ecal/core/src/io/udp_receiver.h @@ -35,6 +35,12 @@ namespace eCAL { public: CUDPReceiver(); + ~CUDPReceiver(); + + CUDPReceiver(const CUDPReceiver&) = delete; + CUDPReceiver& operator=(const CUDPReceiver&) = delete; + CUDPReceiver(CUDPReceiver&& rhs) = delete; + CUDPReceiver& operator=(CUDPReceiver&& rhs) = delete; bool Create(const SReceiverAttr& attr_) override; bool Destroy() override;