mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Call SDL_UDEV_Quit() if we don't end up using it
This commit is contained in:
parent
7d7a76c077
commit
e5a4f09363
1 changed files with 4 additions and 0 deletions
|
|
@ -1036,6 +1036,10 @@ static bool LINUX_JoystickInit(void)
|
|||
"udev init failed, disabling udev integration");
|
||||
enumeration_method = ENUMERATION_FALLBACK;
|
||||
}
|
||||
} else {
|
||||
if (udev_initialized) {
|
||||
SDL_UDEV_Quit();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue