Call SDL_UDEV_Quit() if we don't end up using it

This commit is contained in:
Sam Lantinga
2025-01-13 10:22:10 -08:00
parent 7d7a76c077
commit e5a4f09363

View File

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