From e5994319e38b5f0474dc98c96d9461fc97bbbf45 Mon Sep 17 00:00:00 2001 From: Niklas Goby Date: Mon, 11 Apr 2011 09:28:03 +0200 Subject: forgot the close device command inserted it now whole method has to be tested!! --- src/sysinfo.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index 5440717..af649ed 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -156,6 +156,7 @@ const QString SysInfo::getUsbVendorIdProductIdSerialNumber() } infos.insert("serialnumber",QString((const char *)string)); list << infos; + libusb_close(handle); } libusb_free_device_list(devs, 1); //free the list, unref the devices in it libusb_exit(ctx); //close the session -- cgit v1.2.3-55-g7522