diff options
author | Tom Rondeau | 2012-05-03 12:36:00 -0400 |
---|---|---|
committer | Tom Rondeau | 2012-05-03 12:36:00 -0400 |
commit | 05b2c02f17d790df4896fcfb85c4020748f25747 (patch) | |
tree | 9a04fdb6ef2255534996f7f7a37cbcda6ac4445a | |
parent | 4def5f38c96d5f8657ffa98f827d4c97157f4d13 (diff) | |
download | gnuradio-05b2c02f17d790df4896fcfb85c4020748f25747.tar.gz gnuradio-05b2c02f17d790df4896fcfb85c4020748f25747.tar.bz2 gnuradio-05b2c02f17d790df4896fcfb85c4020748f25747.zip |
pfb: properly deleting d_fft to close some memory leaks.
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc | 1 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc | 1 | ||||
-rw-r--r-- | gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc index cb7c93962..a8cb849e2 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_channelizer_ccf.cc @@ -96,6 +96,7 @@ gr_pfb_channelizer_ccf::gr_pfb_channelizer_ccf (unsigned int numchans, gr_pfb_channelizer_ccf::~gr_pfb_channelizer_ccf () { + delete d_fft; delete [] d_idxlut; for(unsigned int i = 0; i < d_numchans; i++) { diff --git a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc index c973daf82..e563daa51 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_decimator_ccf.cc @@ -69,6 +69,7 @@ gr_pfb_decimator_ccf::gr_pfb_decimator_ccf (unsigned int decim, gr_pfb_decimator_ccf::~gr_pfb_decimator_ccf () { + delete d_fft; for(unsigned int i = 0; i < d_rate; i++) { delete d_filters[i]; } diff --git a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc index 9910a1851..cd01aaff5 100644 --- a/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc +++ b/gnuradio-core/src/lib/filter/gr_pfb_synthesizer_ccf.cc @@ -74,6 +74,7 @@ gr_pfb_synthesizer_ccf::gr_pfb_synthesizer_ccf gr_pfb_synthesizer_ccf::~gr_pfb_synthesizer_ccf () { + delete d_fft; for(unsigned int i = 0; i < d_twox*d_numchans; i++) { delete d_filters[i]; } |