summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNiklas Goby2011-04-11 09:28:03 +0200
committerNiklas Goby2011-04-11 09:28:03 +0200
commite5994319e38b5f0474dc98c96d9461fc97bbbf45 (patch)
tree909b9fc8a41d29ca132ad2313ba318a718613a83 /src
parentadded method into sysInfo class for receiving informations (diff)
downloadfbgui-e5994319e38b5f0474dc98c96d9461fc97bbbf45.tar.gz
fbgui-e5994319e38b5f0474dc98c96d9461fc97bbbf45.tar.xz
fbgui-e5994319e38b5f0474dc98c96d9461fc97bbbf45.zip
forgot the close device command
inserted it now whole method has to be tested!!
Diffstat (limited to 'src')
-rw-r--r--src/sysinfo.cpp1
1 files changed, 1 insertions, 0 deletions
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