mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-21 07:41:46 -05:00
Merge pull request #2326 from srcejon/fix_1734
ADS-B: Fix memory use after delete.
This commit is contained in:
commit
bba9d0b421
@ -105,8 +105,8 @@ ADSBDemod::~ADSBDemod()
|
|||||||
delete m_networkManager;
|
delete m_networkManager;
|
||||||
m_deviceAPI->removeChannelSinkAPI(this);
|
m_deviceAPI->removeChannelSinkAPI(this);
|
||||||
m_deviceAPI->removeChannelSink(this);
|
m_deviceAPI->removeChannelSink(this);
|
||||||
|
delete m_basebandSink; // This results in a call to ADSBDemod::stop(), so need to delete before worker and thread
|
||||||
delete m_worker;
|
delete m_worker;
|
||||||
delete m_basebandSink;
|
|
||||||
delete m_thread;
|
delete m_thread;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5113,6 +5113,7 @@ ADSBDemodGUI::ADSBDemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseb
|
|||||||
|
|
||||||
ADSBDemodGUI::~ADSBDemodGUI()
|
ADSBDemodGUI::~ADSBDemodGUI()
|
||||||
{
|
{
|
||||||
|
m_adsbDemod->setMessageQueueToGUI(nullptr);
|
||||||
disconnect(&MainCore::instance()->getSettings(), &MainSettings::preferenceChanged, this, &ADSBDemodGUI::preferenceChanged);
|
disconnect(&MainCore::instance()->getSettings(), &MainSettings::preferenceChanged, this, &ADSBDemodGUI::preferenceChanged);
|
||||||
if (m_templateServer)
|
if (m_templateServer)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user