Windows: Fix parent USB device reference leak
authorAngus Gratton <gus@projectgus.com>
Tue, 28 Apr 2015 06:46:37 +0000 (16:46 +1000)
committerChris Dickens <christopher.a.dickens@gmail.com>
Wed, 2 Mar 2016 07:07:38 +0000 (23:07 -0800)
commit1d54ee1b6687c532eca75925f56eb12e2a34ce42
treec4560dc12e59be938bb7c064d7be99d2a06ee3f3
parent64d583f4dc83e9e1ec5bc9c2269cfd17523eb070
Windows: Fix parent USB device reference leak

If windows_get_device_list() found a device that already existed, it
would erronenously increment the parent_dev refcount and cause a
reference leak - the parent device would never be released.

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
libusb/os/windows_winusb.c
libusb/version_nano.h