aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-22 11:20:43 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-11-22 11:20:43 +0100
commitfc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae (patch)
tree57614bb4cfd1eb3873d53cf2240900ba8a302137
parent01916ff284620f80d9edd4d6ac486f1c3ef0683b (diff)
downloaddabmux-fc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae.tar.gz
dabmux-fc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae.tar.bz2
dabmux-fc9d04fcae5a1bb8ffe57ad2b2dd5b0ae42055ae.zip
Make DabOutput dtors virtual
-rw-r--r--src/dabOutput/dabOutput.h4
1 files changed, 2 insertions, 2 deletions
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();
}