Skip to content

Conversation

@v1993
Copy link
Contributor

@v1993 v1993 commented Oct 14, 2025

This prevents a resource leak if the device object gets destroyed while still open. Calling libusb_unref_device by itself is not enough since opening the device internally increments its reference count.

@hughsie hughsie merged commit c4c1b25 into hughsie:main Oct 14, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants