From ae8eddbfdadb66e7f60f77957ba895333bd07eab Mon Sep 17 00:00:00 2001 From: f4exb Date: Thu, 15 Feb 2018 18:49:15 +0100 Subject: [PATCH] Channel Analyzer NG: delete objects unconditionnally in destructor since they are created in the constructor --- plugins/channelrx/chanalyzerng/chanalyzerng.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/channelrx/chanalyzerng/chanalyzerng.cpp b/plugins/channelrx/chanalyzerng/chanalyzerng.cpp index 8f28f92bb..85a009219 100644 --- a/plugins/channelrx/chanalyzerng/chanalyzerng.cpp +++ b/plugins/channelrx/chanalyzerng/chanalyzerng.cpp @@ -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;