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
2019-04-06 14:31:49 -04:00
committed by GitHub

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");
}