mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-06 15:29:02 +00:00
alsa: Fix use-after-free when reinitializing
This commit is contained in:
@@ -991,6 +991,7 @@ ALSA_Deinitialize(void)
|
||||
SDL_free(dev->name);
|
||||
SDL_free(dev);
|
||||
}
|
||||
hotplug_devices = NULL;
|
||||
|
||||
UnloadALSALibrary();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user