Merge pull request #4723 from jroweboy/minorfix

Destroy the callback after the stream is destroyed to prevent crashes on close
This commit is contained in:
Weiyi Wang authored and GitHub committed 2019-04-06 14:31:49 -04:00
commit d5bcb45b2a
1 file changed
-2
-2
View File
@@ -96,8 +96,6 @@ CubebSink::~CubebSink() {
return;
}
impl->cb = nullptr;
if (cubeb_stream_stop(impl->stream) != CUBEB_OK) {
LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream");
}