mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-07-24 19:14:15 -04:00
AudioOutput: fixed core dump on program exit
This commit is contained in:
@@ -26,6 +26,7 @@ AudioOutput::AudioOutput() :
|
||||
m_mutex(),
|
||||
m_audioOutput(0),
|
||||
m_audioUsageCount(0),
|
||||
m_onExit(false),
|
||||
m_audioFifos()
|
||||
{
|
||||
}
|
||||
@@ -124,7 +125,10 @@ void AudioOutput::stop()
|
||||
if (m_audioUsageCount == 0)
|
||||
{
|
||||
QIODevice::close();
|
||||
delete m_audioOutput;
|
||||
|
||||
if (!m_onExit) {
|
||||
delete m_audioOutput;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user