commit | 43fbe3df02551c4ad9b5976fbd5acc6280e66829 | [log] [tgz] |
---|---|---|
author | Toby Gray <toby.gray@realvnc.com> | Mon Jun 24 12:31:26 2013 +0100 |
committer | Hans de Goede <hdegoede@redhat.com> | Wed Jun 26 15:29:13 2013 +0200 |
tree | 5f172b65e363b2be261ac2617c85ff7cec50c4be | |
parent | 1b3c8272d6c9852977e87f4106a4669ebb25980b [diff] |
WinCE: Fix device reference leak which caused crash on libusb_exit(). The Windows CE device allocation code has always had a bug where it would leak references to devices when they are allocated. This commit removes the reference leak. This leak was highlighted by the new hotplug code which now triggers a NULL pointer dereference if not all devices are unreferenced before libusb_exit is called. Signed-off-by: Hans de Goede <hdegoede@redhat.com>