audio: unset a freed variable to NULL
parent
1fc01b0300
commit
e969160de0
|
@ -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.
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue