sdrangel/plugins/channelrx/demodbfm
Jason Gerecke 1eaae0de30 BFM demod: Delete the SpectrumVis when destroying BFMDemodGUI
Take care of a pair of memory leaks that occur when the BFM demod GUI
is closed.

==786== 19,952 (24 direct, 19,928 indirect) bytes in 1 blocks are definitely lost in loss record 7,065 of 7,081
==786==    at 0x4C2D54F: operator new(unsigned long) (vg_replace_malloc.c:334)
==786==    by 0x54C82ED: allocate (new_allocator.h:111)
==786==    by 0x54C82ED: allocate (alloc_traits.h:436)
==786==    by 0x54C82ED: _M_get_node (stl_list.h:383)
==786==    by 0x54C82ED: _M_create_node<FFTWEngine::Plan* const&> (stl_list.h:572)
==786==    by 0x54C82ED: _M_insert<FFTWEngine::Plan* const&> (stl_list.h:1801)
==786==    by 0x54C82ED: push_back (stl_list.h:1118)
==786==    by 0x54C82ED: FFTWEngine::configure(int, bool) (fftwengine.cpp:35)
==786==    by 0x4F4590B: SpectrumVis::handleConfigure(int, int, FFTWindow::Function) (spectrumvis.cpp:206)
==786==    by 0x4F459EE: SpectrumVis::handleMessage(Message const&) (spectrumvis.cpp:170)
==786==    by 0x548346C: BasebandSampleSink::handleInputMessages() (basebandsamplesink.cpp:21)
==786==    by 0x69E1615: QMetaObject::activate(QObject*, int, int, void**) (in /usr/lib/libQt5Core.so.5.10.1)
==786==    by 0x5497D4B: MessageQueue::push(Message*, bool) (messagequeue.cpp:52)
==786==    by 0x33F9D61A: BFMDemodGUI::BFMDemodGUI(PluginAPI*, DeviceUISet*, BasebandSampleSink*, QWidget*) (bfmdemodgui.cpp:352)
==786==    by 0x33F9D985: BFMDemodGUI::create(PluginAPI*, DeviceUISet*, BasebandSampleSink*) (bfmdemodgui.cpp:50)
==786==    by 0x33FB035D: non-virtual thunk to BFMPlugin::createRxChannelGUI(DeviceUISet*, BasebandSampleSink*) (bfmplugin.cpp:57)
==786==    by 0x4F47F19: DeviceUISet::loadRxChannelSettings(Preset const*, PluginAPI*) (deviceuiset.cpp:201)
==786==    by 0x4EA51EA: MainWindow::loadPresetSettings(Preset const*, int) (mainwindow.cpp:575)
==786==    by 0x4EAC81B: MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) (mainwindow.cpp:176)
==786==    by 0x10A49B: runQtApplication(int, char**, qtwebapp::LoggerWithFile*) (main.cpp:120)
==786==    by 0x109B38: main (main.cpp:131)
==786==
==786== 54,096 (112 direct, 53,984 indirect) bytes in 1 blocks are definitely lost in loss record 7,075 of 7,081
==786==    at 0x4C2D54F: operator new(unsigned long) (vg_replace_malloc.c:334)
==786==    by 0x69E9162: QObject::QObject(QObject*) (in /usr/lib/libQt5Core.so.5.10.1)
==786==    by 0x5497BEE: MessageQueue::MessageQueue(QObject*) (messagequeue.cpp:26)
==786==    by 0x54834FF: BasebandSampleSink::BasebandSampleSink() (basebandsamplesink.cpp:6)
==786==    by 0x4F45A29: SpectrumVis::SpectrumVis(float, GLSpectrum*) (spectrumvis.cpp:26)
==786==    by 0x33F9D53C: BFMDemodGUI::BFMDemodGUI(PluginAPI*, DeviceUISet*, BasebandSampleSink*, QWidget*) (bfmdemodgui.cpp:342)
==786==    by 0x33F9D985: BFMDemodGUI::create(PluginAPI*, DeviceUISet*, BasebandSampleSink*) (bfmdemodgui.cpp:50)
==786==    by 0x33FB035D: non-virtual thunk to BFMPlugin::createRxChannelGUI(DeviceUISet*, BasebandSampleSink*) (bfmplugin.cpp:57)
==786==    by 0x4F47F19: DeviceUISet::loadRxChannelSettings(Preset const*, PluginAPI*) (deviceuiset.cpp:201)
==786==    by 0x4EA51EA: MainWindow::loadPresetSettings(Preset const*, int) (mainwindow.cpp:575)
==786==    by 0x4EAC81B: MainWindow::MainWindow(qtwebapp::LoggerWithFile*, MainParser const&, QWidget*) (mainwindow.cpp:176)
==786==    by 0x10A49B: runQtApplication(int, char**, qtwebapp::LoggerWithFile*) (main.cpp:120)
==786==    by 0x109B38: main (main.cpp:131)
2018-04-21 18:56:21 -07:00
..
CMakeLists.txt Multiple audio support: BFM demodulator 2018-03-27 23:57:29 +02:00
bfmdemod.cpp Moved FFT filter destruction at end of the mod or demod destructor 2018-04-18 22:20:47 +02:00
bfmdemod.h Multiple audio support: WFM demodulator 2018-03-28 07:44:54 +02:00
bfmdemodgui.cpp BFM demod: Delete the SpectrumVis when destroying BFMDemodGUI 2018-04-21 18:56:21 -07:00
bfmdemodgui.h Multiple audio support: BFM demodulator 2018-03-27 23:57:29 +02:00
bfmdemodgui.ui Multiple audio support: BFM demodulator 2018-03-27 23:57:29 +02:00
bfmdemodsettings.cpp BFM demod: removed UDP/RTP copy audio entirely 2018-03-28 09:43:33 +02:00
bfmdemodsettings.h BFM demod: removed UDP/RTP copy audio entirely 2018-03-28 09:43:33 +02:00
bfmplugin.cpp BFM demod: bumped version 2018-04-12 00:13:40 +02:00
bfmplugin.h Plugin interface: simplify createRxChannelGUI 2017-12-23 10:32:02 +01:00
demodbfm.pro Windows build: new location for export header 2018-03-10 20:32:46 +01:00
rdsdecoder.cpp PVS-Studio static analysis corrections (2) issue #137 2018-02-22 03:04:42 +01:00
rdsdecoder.h RxTx semantic move: renamed channel plugins directory to channelrx 2016-10-02 13:18:07 +02:00
rdsdemod.cpp PVS-Studio static analysis corrections (2) issue #137 2018-02-22 03:04:42 +01:00
rdsdemod.h RxTx semantic move: renamed channel plugins directory to channelrx 2016-10-02 13:18:07 +02:00
rdsparser.cpp BFM demod: RDS parser: fixed compiler warning 2018-04-15 22:03:31 +02:00
rdsparser.h RxTx semantic move: renamed channel plugins directory to channelrx 2016-10-02 13:18:07 +02:00
rdstmc.cpp BFM demod: RDSTMC: use char* instead of std::string for constant array 2017-12-31 11:54:56 +01:00
rdstmc.h RxTx semantic move: renamed channel plugins directory to channelrx 2016-10-02 13:18:07 +02:00