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:
parent
c540faf271
commit
efda47a226
|
@ -73,6 +73,8 @@ Audio::Audio()
|
|||
|
||||
Audio::~Audio()
|
||||
{
|
||||
closeInput();
|
||||
closeOutput();
|
||||
audioThread->exit();
|
||||
audioThread->wait();
|
||||
if (audioThread->isRunning())
|
||||
|
|
|
@ -106,10 +106,6 @@ Core::~Core()
|
|||
}
|
||||
|
||||
deadifyTox();
|
||||
|
||||
Audio& audio = Audio::getInstance();
|
||||
audio.closeInput();
|
||||
audio.closeOutput();
|
||||
}
|
||||
|
||||
Core* Core::getInstance()
|
||||
|
|
Loading…
Reference in New Issue
Block a user