From 698cc3cb63adf3ea140ea6160bf1f121418f457c Mon Sep 17 00:00:00 2001 From: srcejon Date: Fri, 17 Nov 2023 17:39:57 +0000 Subject: [PATCH] Prevent demod from crashing when GUI is destroyed. --- plugins/channelrx/demodm17/m17demodgui.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/channelrx/demodm17/m17demodgui.cpp b/plugins/channelrx/demodm17/m17demodgui.cpp index 44f01fc24a..abfec65992 100644 --- a/plugins/channelrx/demodm17/m17demodgui.cpp +++ b/plugins/channelrx/demodm17/m17demodgui.cpp @@ -520,6 +520,7 @@ M17DemodGUI::M17DemodGUI(PluginAPI* pluginAPI, DeviceUISet *deviceUISet, Baseban M17DemodGUI::~M17DemodGUI() { + m_m17Demod->setScopeXYSink(nullptr); delete m_scopeVisXY; ui->screenTV->setParent(nullptr); // Prefer memory leak to core dump... ~TVScreen() is buggy delete ui;