mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Audio injector cleanup
This commit is contained in:
parent
b2533b6106
commit
2665ede06f
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue