summaryrefslogtreecommitdiffstats
path: root/src/DabMux.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-14 21:11:21 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2014-05-14 21:11:21 +0200
commit8a0848faf7fad8ec8e5482830ac5f28442e12b50 (patch)
tree5ded98223ea8cf2a853bf2fed70b6756ad0fdd0d /src/DabMux.cpp
parente96b67d1d324411c11387bb3029d602ef6e492a2 (diff)
downloaddabmux-8a0848faf7fad8ec8e5482830ac5f28442e12b50.tar.gz
dabmux-8a0848faf7fad8ec8e5482830ac5f28442e12b50.tar.bz2
dabmux-8a0848faf7fad8ec8e5482830ac5f28442e12b50.zip
Correct ensemble deallocation
ensemble is allocated with 'new', and must be deallocated with 'delete', not 'free()'
Diffstat (limited to 'src/DabMux.cpp')
-rw-r--r--src/DabMux.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/DabMux.cpp b/src/DabMux.cpp
index e698e89..468ba1e 100644
--- a/src/DabMux.cpp
+++ b/src/DabMux.cpp
@@ -1929,7 +1929,7 @@ EXIT:
ensemble->components.clear();
ensemble->services.clear();
ensemble->subchannels.clear();
- free(ensemble);
+ delete ensemble;
outputs.clear();
UdpSocket::clean();