Audio injector cleanup

This commit is contained in:
Vladyslav Stelmakhovskyi 2017-04-20 21:32:14 +02:00
parent b2533b6106
commit 2665ede06f

View file

@ -1780,8 +1780,9 @@ void Application::cleanupBeforeQuit() {
// stop QML
DependencyManager::destroy<OffscreenUi>();
delete _snapshotSoundInjector;
_snapshotSoundInjector = nullptr;
if (_snapshotSoundInjector != nullptr) {
_snapshotSoundInjector->stop();
}
// stop audio after QML, as there are unexplained audio crashes originating in qtwebengine