audio/wiiu: deregister framecallback before freeing sources

This commit is contained in:
GaryOderNichts 2021-01-31 23:59:28 +01:00
parent ecef835577
commit 07f1d1f5e1

View File

@ -346,6 +346,7 @@ static Uint8* WIIUAUDIO_GetDeviceBuf(_THIS) {
static void WIIUAUDIO_CloseDevice(_THIS) {
if (AXIsInit()) {
AXDeregisterAppFrameCallback(_WIIUAUDIO_framecallback);
for (int i = 0; i < SIZEOF_ARR(this->hidden->voice); i++) {
if (this->hidden->voice[i]) {
AXFreeVoice(this->hidden->voice[i]);