From 8a0848faf7fad8ec8e5482830ac5f28442e12b50 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Wed, 14 May 2014 21:11:21 +0200 Subject: Correct ensemble deallocation ensemble is allocated with 'new', and must be deallocated with 'delete', not 'free()' --- src/DabMux.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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(); -- cgit v1.2.3