1
0
Fork 0
mirror of https://github.com/PabloMK7/citra.git synced 2025-05-31 13:58:11 +00:00

Destroy the callback after the stream is destroyed

Prevents a crash on close if the callback was running on a different
thread.
This commit is contained in:
James Rowe 2019-04-04 23:51:15 -06:00
parent 14730ed560
commit f4d0bdd09a

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