diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-05-14 21:11:21 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2014-05-14 21:11:21 +0200 |
commit | 8a0848faf7fad8ec8e5482830ac5f28442e12b50 (patch) | |
tree | 5ded98223ea8cf2a853bf2fed70b6756ad0fdd0d | |
parent | e96b67d1d324411c11387bb3029d602ef6e492a2 (diff) | |
download | dabmux-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()'
-rw-r--r-- | src/DabMux.cpp | 2 |
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(); |