aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMatthias P. Braendli (think) <matthias@mpb.li>2012-08-20 09:29:26 +0200
committerMatthias P. Braendli (think) <matthias@mpb.li>2012-08-20 09:29:26 +0200
commiteba66fc7360744a4f205a503f8c5eba06550dd40 (patch)
treea4c841e4fbd50e9ff1e5e853d6527cd3dc362bea /src
parent2fc71106e10435a28ed1f151b833f32aa7ff658c (diff)
downloaddabmod-eba66fc7360744a4f205a503f8c5eba06550dd40.tar.gz
dabmod-eba66fc7360744a4f205a503f8c5eba06550dd40.tar.bz2
dabmod-eba66fc7360744a4f205a503f8c5eba06550dd40.zip
crc-dabmod: FIRFilter delete[] operator correctionr5
Diffstat (limited to 'src')
-rw-r--r--src/FIRFilter.cpp4
1 files changed, 2 insertions, 2 deletions
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;