1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-12-23 10:05:46 -05:00

Prevent demod from crashing when GUI is destroyed.

This commit is contained in:
srcejon 2023-11-17 17:39:57 +00:00
parent c7436c946f
commit 698cc3cb63

View File

@ -520,6 +520,7 @@ M17DemodGUI::M17DemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban
M17DemodGUI::~M17DemodGUI() M17DemodGUI::~M17DemodGUI()
{ {
m_m17Demod->setScopeXYSink(nullptr);
delete m_scopeVisXY; delete m_scopeVisXY;
ui->screenTV->setParent(nullptr); // Prefer memory leak to core dump... ~TVScreen() is buggy ui->screenTV->setParent(nullptr); // Prefer memory leak to core dump... ~TVScreen() is buggy
delete ui; delete ui;