mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 23:06:03 +00:00
audio: unset a freed variable to NULL
This commit is contained in:
@@ -574,6 +574,7 @@ int SDL_InitAudio(const char *driver_name)
|
||||
|
||||
SDL_zero(current_audio);
|
||||
SDL_DestroyRWLock(device_list_lock);
|
||||
current_audio.device_list_lock = NULL;
|
||||
return -1; // No driver was available, so fail.
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user