From 2665ede06fd8ae665af79b65e3d96a64559ce6dd Mon Sep 17 00:00:00 2001 From: Vladyslav Stelmakhovskyi Date: Thu, 20 Apr 2017 21:32:14 +0200 Subject: [PATCH] Audio injector cleanup --- interface/src/Application.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interface/src/Application.cpp b/interface/src/Application.cpp index 0e4da4b158..536643012c 100644 --- a/interface/src/Application.cpp +++ b/interface/src/Application.cpp @@ -1780,8 +1780,9 @@ void Application::cleanupBeforeQuit() { // stop QML DependencyManager::destroy(); - delete _snapshotSoundInjector; - _snapshotSoundInjector = nullptr; + if (_snapshotSoundInjector != nullptr) { + _snapshotSoundInjector->stop(); + } // stop audio after QML, as there are unexplained audio crashes originating in qtwebengine