Merge pull request #4723 from jroweboy/minorfix

Destroy the callback after the stream is destroyed to prevent crashes on close
master
Weiyi Wang 2019-04-06 14:31:49 +07:00 committed by GitHub
commit d5bcb45b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

@ -96,8 +96,6 @@ CubebSink::~CubebSink() {
return; return;
} }
impl->cb = nullptr;
if (cubeb_stream_stop(impl->stream) != CUBEB_OK) { if (cubeb_stream_stop(impl->stream) != CUBEB_OK) {
LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream"); LOG_CRITICAL(Audio_Sink, "Error stopping cubeb stream");
} }