From a77cf4fb7ffcf373d28cc77a93ebe8c54f6098a2 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 25 Jun 2015 16:34:38 -0700 Subject: [PATCH] fix audio-mixer shutdown on UNIX/OS X --- assignment-client/src/audio/AudioMixer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/assignment-client/src/audio/AudioMixer.cpp b/assignment-client/src/audio/AudioMixer.cpp index c3ca6796bc..0307a88d7f 100644 --- a/assignment-client/src/audio/AudioMixer.cpp +++ b/assignment-client/src/audio/AudioMixer.cpp @@ -852,9 +852,11 @@ void AudioMixer::run() { // since we're a while loop we need to help Qt's event processing QCoreApplication::processEvents(); - QCoreApplication::sendPostedEvents(this, 0); if (_isFinished) { + // at this point the audio-mixer is done + // check if we have a deferred delete event to process (which we should once finished) + QCoreApplication::sendPostedEvents(this, QEvent::DeferredDelete); break; }