fix TCPSrc closing crash

This commit is contained in:
Christian Daniel 2013-09-24 16:29:09 +02:00
parent c3d0a654af
commit 961c1bcca8
1 changed files with 6 additions and 0 deletions

View File

@ -85,6 +85,12 @@ TCPSrcGUI::TCPSrcGUI(PluginAPI* pluginAPI, QWidget* parent) :
TCPSrcGUI::~TCPSrcGUI()
{
m_pluginAPI->removeChannelInstance(this);
m_pluginAPI->removeSampleSink(m_threadedSampleSink);
delete m_threadedSampleSink;
delete m_channelizer;
delete m_tcpSrc;
delete m_spectrumVis;
delete m_channelMarker;
delete ui;
}