1
0
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:
f4exb
2016-10-08 06:54:49 +02:00
parent 6f054a51d8
commit bb541e9fb2
3 changed files with 9 additions and 1 deletions
+5 -1
View File
@@ -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;
}
}
}
}