Update src/audio/SDL_audio.c

This commit is contained in:
Sam Lantinga 2025-06-21 10:47:34 -07:00 committed by GitHub
parent 227021cf4f
commit fd2be08734
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -1079,6 +1079,9 @@ void SDL_QuitAudio(void)
next = i->next;
if (i->simplified || !SDL_GetBooleanProperty(i->props, SDL_PROP_AUDIOSTREAM_KEEP_ON_SHUTDOWN_BOOLEAN, false)) {
SDL_DestroyAudioStream(i);
} else {
i->prev = NULL;
i->next = NULL;
}
}