alsa: Fix use-after-free when reinitializing

This commit is contained in:
Cameron Gutman 2021-11-12 16:57:24 -06:00
parent e688a95ba4
commit 78013aeef9

View file

@ -991,6 +991,7 @@ ALSA_Deinitialize(void)
SDL_free(dev->name);
SDL_free(dev);
}
hotplug_devices = NULL;
UnloadALSALibrary();
}