core: only increment devices_released when a device is destroyed
authorNathan Hjelm <hjelmn@google.com>
Fri, 11 Jun 2021 03:02:05 +0000 (21:02 -0600)
committerNathan Hjelm <hjelmn@google.com>
Fri, 11 Jun 2021 03:02:05 +0000 (21:02 -0600)
commit66d058150d9844a8556c37de6b5603c9e18a0330
tree2bb00399c75a459135b67e3c212ccba5975885ff
parenta0e773812b8aa07ad57fc092a7a4f406366f5272
core: only increment devices_released when a device is destroyed

Fix a typo in the last commit to ensure the loop does exit when there is
a dangling reference.

Signed-off-by: Nathan Hjelm <hjelmn@google.com>
libusb/hotplug.c
libusb/version_nano.h