mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-25 04:53:27 -04:00
Free speech engine in destructor.
This commit is contained in:
@@ -133,6 +133,14 @@ FreqDisplayGUI::FreqDisplayGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet,
|
||||
|
||||
FreqDisplayGUI::~FreqDisplayGUI()
|
||||
{
|
||||
#ifdef QT_TEXTTOSPEECH_FOUND
|
||||
if (m_speech)
|
||||
{
|
||||
disconnect(m_speech, &QTextToSpeech::stateChanged, this, &FreqDisplayGUI::speechStateChanged);
|
||||
delete m_speech;
|
||||
m_speech = nullptr;
|
||||
}
|
||||
#endif
|
||||
delete ui;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user