summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Daniel <cd@maintech.de>2013-09-24 16:29:09 +0200
committerChristian Daniel <cd@maintech.de>2013-09-24 16:29:09 +0200
commit961c1bcca89e00a14abded1b7c624feeb1185ab8 (patch)
tree6befb0bbbb981eade418c1c619d7ef44af019436
parentc3d0a654afe2be8f8dae0d6bbcba5a06f5e407f8 (diff)
fix TCPSrc closing crash
-rw-r--r--plugins/demod/tcpsrc/tcpsrcgui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/demod/tcpsrc/tcpsrcgui.cpp b/plugins/demod/tcpsrc/tcpsrcgui.cpp
index 4f04442..f83116d 100644
--- a/plugins/demod/tcpsrc/tcpsrcgui.cpp
+++ b/plugins/demod/tcpsrc/tcpsrcgui.cpp
@@ -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;
}