Commit d5813776db6e921192e356fb6b8bc9cb6254c01a

Sylvain 2021-11-25T09:56:15

Release UDEV ressources

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/hidapi/SDL_hidapi.c b/src/hidapi/SDL_hidapi.c
index 3239353..3929572 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