Fixed cleanup issue in USBController::on_read_data()
This commit is contained in:
parent
97b6ca71a7
commit
3c2d3a2b13
1 changed files with 2 additions and 1 deletions
|
@ -265,7 +265,8 @@ USBController::on_read_data(libusb_transfer* transfer)
|
|||
}
|
||||
else if (transfer->status == LIBUSB_TRANSFER_CANCELLED)
|
||||
{
|
||||
// ok
|
||||
m_transfers.erase(transfer);
|
||||
libusb_free_transfer(transfer);
|
||||
}
|
||||
else if (transfer->status == LIBUSB_TRANSFER_NO_DEVICE)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue