From fc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 22 Nov 2017 11:20:43 +0100 Subject: Make DabOutput dtors virtual --- src/dabOutput/dabOutput.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/dabOutput/dabOutput.h') diff --git a/src/dabOutput/dabOutput.h b/src/dabOutput/dabOutput.h index 5ea93db..2f1fc25 100644 --- a/src/dabOutput/dabOutput.h +++ b/src/dabOutput/dabOutput.h @@ -197,7 +197,7 @@ class DabOutputUdp : public DabOutput socket_ = new UdpSocket(); } - ~DabOutputUdp() { + virtual ~DabOutputUdp() { delete socket_; delete packet_; } @@ -316,7 +316,7 @@ class DabOutputZMQ : public DabOutput DabOutputZMQ(const DabOutputZMQ& other) = delete; DabOutputZMQ& operator=(const DabOutputZMQ& other) = delete; - ~DabOutputZMQ() + virtual ~DabOutputZMQ() { zmq_pub_sock_.close(); } -- cgit v1.2.3