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

cleanup audio out device on error after open

This commit is contained in:
Nils Fenner 2015-11-08 22:23:36 +01:00
parent d631ddbc86
commit d233c6f699
No known key found for this signature in database
GPG Key ID: 9591A163FF9BE04C

View File

@ -313,7 +313,7 @@ bool Audio::initOutput(const QString& outDevDescr)
else else
{ {
qWarning() << "Cannot create output audio context"; qWarning() << "Cannot create output audio context";
alcCloseDevice(alOutDev); cleanupOutput();
return false; return false;
} }
} }