mirror of
https://github.com/yawut/SDL.git
synced 2026-07-10 13:44:44 -05:00
Don't close already-closed audio devices during SDL_Quit().
Otherwise, we spam a bunch of unnecessary SDL_SetError() calls. Fixes Bugzilla #1791.
This commit is contained in:
parent
10f2d9ded3
commit
79d7ea0d5d
|
|
@ -1174,7 +1174,9 @@ SDL_AudioQuit(void)
|
|||
{
|
||||
SDL_AudioDeviceID i;
|
||||
for (i = 0; i < SDL_arraysize(open_devices); i++) {
|
||||
SDL_CloseAudioDevice(i);
|
||||
if (open_devices[i] != NULL) {
|
||||
SDL_CloseAudioDevice(i);
|
||||
}
|
||||
}
|
||||
|
||||
/* Free the driver data */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user