mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-14 02:07:49 +00:00
audio: Make sure device->hidden is NULL after CloseDevice
This commit is contained in:
parent
3d6ba0cafd
commit
121a2dce15
1 changed files with 1 additions and 0 deletions
|
|
@ -1091,6 +1091,7 @@ static void ClosePhysicalAudioDevice(SDL_AudioDevice *device)
|
|||
if (device->is_opened) {
|
||||
current_audio.impl.CloseDevice(device); // if ProvidesOwnCallbackThread, this must join on any existing device thread before returning!
|
||||
device->is_opened = SDL_FALSE;
|
||||
device->hidden = NULL; // just in case.
|
||||
}
|
||||
|
||||
if (device->work_buffer) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue