[xboxdrv] 48/78: Fixed cleanup issue in USBController::on_read_data()
Andrey Rahmatullin
wrar-guest at moszumanska.debian.org
Sun Feb 21 17:55:11 UTC 2016
This is an automated email from the git hooks/post-receive script.
wrar-guest pushed a commit to branch master
in repository xboxdrv.
commit 3c2d3a2b13ce34ca4b4fdcacd55c549356491097
Author: Ingo Ruhnke <grumbel at gmail.com>
Date: Wed Oct 28 11:28:30 2015 +0100
Fixed cleanup issue in USBController::on_read_data()
---
src/usb_controller.cpp | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/usb_controller.cpp b/src/usb_controller.cpp
index 4014347..9107d69 100644
--- a/src/usb_controller.cpp
+++ b/src/usb_controller.cpp
@@ -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)
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/xboxdrv.git
More information about the Pkg-games-commits
mailing list