From eba66fc7360744a4f205a503f8c5eba06550dd40 Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli (think)" Date: Mon, 20 Aug 2012 09:29:26 +0200 Subject: crc-dabmod: FIRFilter delete[] operator correction --- src/FIRFilter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/FIRFilter.cpp b/src/FIRFilter.cpp index 13f623c..91a52ec 100644 --- a/src/FIRFilter.cpp +++ b/src/FIRFilter.cpp @@ -288,7 +288,7 @@ FIRFilter::load_filter_taps() if (taps_fstream.eof()) { fprintf(stderr, "FIRFilter: file %s should contains %d taps, but EOF reached "\ "after %d taps !\n", myTapsFile.c_str(), n_taps, n); - delete myFilter; + delete[] myFilter; throw std::runtime_error("FIRFilter: filtertaps file invalid ! "); } } @@ -296,7 +296,7 @@ FIRFilter::load_filter_taps() { boost::mutex::scoped_lock lock(firwd.taps_mutex); - delete firwd.taps; + delete[] firwd.taps; firwd.taps = myFilter; firwd.n_taps = myNtaps; -- cgit v1.2.3