DescriptionFixes leaking transfer objects due to improper USB handle closure.
We were simply close the device handle and left all the flying transfers hanging. libusb guarantees that the transfer callbacks will be called even if canceled. But it was not freed because during the libusb_close the user_data of the transfer is reset, so our handler will not be relaid to.
This change is to wait for all the transfers to be canceled before we really close the platform handle.
BUG=223817
BUG=261695
BUG=269048
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216793
Patch Set 1 : #
Total comments: 12
Patch Set 2 : Fixes #Patch Set 3 : Minor fix #
Messages
Total messages: 9 (0 generated)
|