Fixed cleanup issue in USBController::on_read_data()

This commit is contained in:
Ingo Ruhnke 2015-10-28 11:28:30 +01:00
parent 97b6ca71a7
commit 3c2d3a2b13

View file

@ -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)
{