Browse Source

Release UDEV ressources

Sylvain 3 years ago
parent
commit
d5813776db
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/hidapi/SDL_hidapi.c

+ 3 - 0
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