mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-05-28 02:57:00 -04:00
Free speech engine in destructor.
This commit is contained in:
parent
6854e6737b
commit
a5d519bc82
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user