audio: unset a freed variable to NULL

main
Ryan C. Gordon 2023-07-03 11:52:01 -04:00
parent 1fc01b0300
commit e969160de0
No known key found for this signature in database
GPG Key ID: FA148B892AB48044
1 changed files with 1 additions and 0 deletions

View File

@ -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.
}