mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-15 10:17:09 +02:00
Merge branch 'master' of github.com:highfidelity/hifi into SUI/fixLasers
This commit is contained in:
commit
022a47d3ec
2 changed files with 3 additions and 1 deletions
|
@ -2775,7 +2775,6 @@ void Application::cleanupBeforeQuit() {
|
|||
|
||||
// destroy Audio so it and its threads have a chance to go down safely
|
||||
// this must happen after QML, as there are unexplained audio crashes originating in qtwebengine
|
||||
QMetaObject::invokeMethod(DependencyManager::get<AudioClient>().data(), "stop");
|
||||
DependencyManager::destroy<AudioClient>();
|
||||
DependencyManager::destroy<AudioScriptingInterface>();
|
||||
|
||||
|
|
|
@ -375,6 +375,9 @@ AudioClient::AudioClient() :
|
|||
}
|
||||
|
||||
AudioClient::~AudioClient() {
|
||||
|
||||
stop();
|
||||
|
||||
if (_codec && _encoder) {
|
||||
_codec->releaseEncoder(_encoder);
|
||||
_encoder = nullptr;
|
||||
|
|
Loading…
Reference in a new issue