1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

close audio output in destructor

This commit is contained in:
Nils Fenner 2015-11-08 21:06:44 +01:00
parent c540faf271
commit efda47a226
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C
2 changed files with 2 additions and 4 deletions

View File

@ -73,6 +73,8 @@ Audio::Audio()
Audio::~Audio()
{
closeInput();
closeOutput();
audioThread->exit();
audioThread->wait();
if (audioThread->isRunning())

View File

@ -106,10 +106,6 @@ Core::~Core()
}
deadifyTox();
Audio& audio = Audio::getInstance();
audio.closeInput();
audio.closeOutput();
}
Core* Core::getInstance()