darwin: After last CFRelease of struct field, set it to NULL
authorSean McBride <sean@rogue-research.com>
Fri, 20 Aug 2021 19:57:52 +0000 (15:57 -0400)
committerTormod Volden <debian.tormod@gmail.com>
Sat, 30 Oct 2021 13:23:45 +0000 (15:23 +0200)
commitedd1a4bfe4b037e67b65e4538fd880123fb004f7
treefd0499d3195253ebe6fabecf9ffad3629c1ef455
parent35b23a047e333ce361cea3315a15301286d89612
darwin: After last CFRelease of struct field, set it to NULL

Other code checks this field for being NULL or not, so NULLing it upon
last release seems the right thing to do.  I noticed this during code
review, I never actually reproduced any problem.

Closes #981
libusb/os/darwin_usb.c
libusb/version_nano.h