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
1 changed files with 2 additions and 2 deletions

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;