From afffc2cda8bc927ec24951ccac53825586897702 Mon Sep 17 00:00:00 2001 From: f4exb Date: Sat, 8 Oct 2016 05:59:59 +0200 Subject: [PATCH] Fixed audio output management by deleting the QAudioOutput when it is not used anymore --- sdrbase/audio/audiooutput.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sdrbase/audio/audiooutput.cpp b/sdrbase/audio/audiooutput.cpp index 2df4c9646..b57a880a6 100644 --- a/sdrbase/audio/audiooutput.cpp +++ b/sdrbase/audio/audiooutput.cpp @@ -113,6 +113,8 @@ bool AudioOutput::start(int device, int rate) void AudioOutput::stop() { + qDebug("AudioOutput::stop"); + QMutexLocker mutexLocker(&m_mutex); if (m_audioUsageCount > 0) @@ -122,7 +124,7 @@ void AudioOutput::stop() if (m_audioUsageCount == 0) { QIODevice::close(); -// delete m_audioOutput; + delete m_audioOutput; } } }