mirror of
https://github.com/yawut/SDL.git
synced 2026-04-25 15:58:04 -05:00
audio/wiiu: deregister framecallback before freeing sources
This commit is contained in:
parent
ecef835577
commit
07f1d1f5e1
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user