aboutsummaryrefslogtreecommitdiffstats
path: root/src/CicEqualizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/CicEqualizer.cpp')
-rw-r--r--src/CicEqualizer.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/CicEqualizer.cpp b/src/CicEqualizer.cpp
index a9c0dd6..2b74672 100644
--- a/src/CicEqualizer.cpp
+++ b/src/CicEqualizer.cpp
@@ -30,12 +30,12 @@ CicEqualizer::CicEqualizer(size_t nbCarriers, size_t spacing, int R) :
ModCodec(ModFormat(nbCarriers * sizeof(complexf)),
ModFormat(nbCarriers * sizeof(complexf))),
myNbCarriers(nbCarriers),
- mySpacing(spacing)
+ mySpacing(spacing),
+ myFilter(nbCarriers)
{
PDEBUG("CicEqualizer::CicEqualizer(%zu, %zu, %i) @ %p\n",
nbCarriers, spacing, R, this);
- myFilter = new float[nbCarriers];
const int M = 1;
const int N = 4;
const float pi = 4.0f * atanf(1.0f);
@@ -61,10 +61,6 @@ CicEqualizer::CicEqualizer(size_t nbCarriers, size_t spacing, int R) :
CicEqualizer::~CicEqualizer()
{
PDEBUG("CicEqualizer::~CicEqualizer() @ %p\n", this);
-
- if (myFilter != NULL) {
- delete[] myFilter;
- }
}