From d5813776db6e921192e356fb6b8bc9cb6254c01a Mon Sep 17 00:00:00 2001 From: Sylvain Date: Thu, 25 Nov 2021 09:56:15 +0100 Subject: [PATCH] Release UDEV ressources --- src/hidapi/SDL_hidapi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c index 3239353c08..3929572ff1 100644 --- a/src/hidapi/SDL_hidapi.c +++ b/src/hidapi/SDL_hidapi.c @@ -1098,6 +1098,9 @@ int SDL_hid_exit(void) if (udev_ctx) { result |= PLATFORM_hid_exit(); } +#if __LINUX__ + SDL_UDEV_ReleaseUdevSyms(); +#endif /* __LINUX __ */ #endif /* HAVE_PLATFORM_BACKEND */ #ifdef SDL_LIBUSB_DYNAMIC