diff --git a/plugins/channelrx/remotesink/remotesinkgui.cpp b/plugins/channelrx/remotesink/remotesinkgui.cpp index 8a5e7615b..a1365bdb8 100644 --- a/plugins/channelrx/remotesink/remotesinkgui.cpp +++ b/plugins/channelrx/remotesink/remotesinkgui.cpp @@ -145,6 +145,7 @@ RemoteSinkGUI::RemoteSinkGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Bas RemoteSinkGUI::~RemoteSinkGUI() { m_deviceUISet->removeRxChannelInstance(this); + delete m_remoteSink; // TODO: check this: when the GUI closes it has to delete the demodulator delete ui; }