Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
windows: Fix leak of event handle on open_device() failure
Create a new free_hid_device() function which takes care of all the resources in hid_device which may need to be freed/released. Reported-by: Johan Lindh <johan@linkdata.se>
- Loading branch information
Showing
1 changed file
with
10 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters