From d233c6f6993e6d35aac2c1ca5283805719c0980b Mon Sep 17 00:00:00 2001 From: Nils Fenner Date: Sun, 8 Nov 2015 22:23:36 +0100 Subject: [PATCH] cleanup audio out device on error after open --- src/audio/audio.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/audio.cpp b/src/audio/audio.cpp index 535d3feda..508a29274 100644 --- a/src/audio/audio.cpp +++ b/src/audio/audio.cpp @@ -313,7 +313,7 @@ bool Audio::initOutput(const QString& outDevDescr) else { qWarning() << "Cannot create output audio context"; - alcCloseDevice(alOutDev); + cleanupOutput(); return false; } }