diff options
author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2021-04-13 19:44:59 +0200 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2021-04-13 21:00:12 +0100 |
commit | 81b9ea72f9982e7c25b09434492140d452acf215 (patch) | |
tree | a3e2d063bba1fc0ed5bd6e82a89b0507875c6bf4 /AUTHORS | |
parent | ea2beb9a77205702d6f9517485d47af5a273b5a0 (diff) | |
download | gusb-81b9ea72f9982e7c25b09434492140d452acf215.tar.gz |
device: Do not double-reference USB devices
Currently gusb-device adds two references to an internal libusb device,
causing a memory leak on destruction.
In fact, we add a reference when the device is constructed and when the
device is inited.
To avoid this and ensure that libusb will cleanup all the devices on
context destruction, only reference on device initialization.
Diffstat (limited to 'AUTHORS')
0 files changed, 0 insertions, 0 deletions