Release UDEV ressources

This commit is contained in:
Sylvain 2021-11-25 09:56:15 +01:00 committed by Ryan C. Gordon
parent 5cb85d611d
commit d5813776db
1 changed files with 3 additions and 0 deletions

View File

@ -1098,6 +1098,9 @@ int SDL_hid_exit(void)
if (udev_ctx) { if (udev_ctx) {
result |= PLATFORM_hid_exit(); result |= PLATFORM_hid_exit();
} }
#if __LINUX__
SDL_UDEV_ReleaseUdevSyms();
#endif /* __LINUX __ */
#endif /* HAVE_PLATFORM_BACKEND */ #endif /* HAVE_PLATFORM_BACKEND */
#ifdef SDL_LIBUSB_DYNAMIC #ifdef SDL_LIBUSB_DYNAMIC