citra-emu
/
citra-canary
Archived
1
0
Fork 0

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
commit d5bcb45b2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

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