Skip to content

Commit

Permalink
Fixed unclosed file handles in HIDManager
Browse files Browse the repository at this point in the history
  • Loading branch information
noorus committed Feb 3, 2014
1 parent 562f6bb commit aad9a2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/HIDManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ namespace nil {
{
auto record = new HIDRecord( devicePath, handle );
mRecords.push_back( record );
CloseHandle( handle );
}
}

Expand Down Expand Up @@ -65,6 +66,7 @@ namespace nil {
{
auto record = new HIDRecord( devicePath, handle );
mRecords.push_back( record );
CloseHandle( handle );
}
}

Expand Down

0 comments on commit aad9a2a

Please sign in to comment.