1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-26 17:58:43 -05:00

Channel Analyzer NG: delete objects unconditionnally in destructor since they are created in the constructor

This commit is contained in:
f4exb 2018-02-15 18:49:15 +01:00
parent 2dbb0b3253
commit ae8eddbfda

View File

@ -60,8 +60,8 @@ ChannelAnalyzerNG::ChannelAnalyzerNG(DeviceSourceAPI *deviceAPI) :
ChannelAnalyzerNG::~ChannelAnalyzerNG()
{
if (SSBFilter) delete SSBFilter;
if (DSBFilter) delete DSBFilter;
delete SSBFilter;
delete DSBFilter;
m_deviceAPI->removeChannelAPI(this);
m_deviceAPI->removeThreadedSink(m_threadedChannelizer);
delete m_threadedChannelizer;