darwin: use destructor function instead of atexit to cleanup state
authorNathan Hjelm <hjelmn@me.com>
Wed, 26 Feb 2014 15:02:40 +0000 (08:02 -0700)
committerNathan Hjelm <hjelmn@me.com>
Wed, 26 Feb 2014 15:02:40 +0000 (08:02 -0700)
commit8facad00ea66e0609d93ad8aa4e174a6e7be8b3c
treefdcafe0d0a1abce9e339f4695d6d99a895d95c1c
parent886decee7a33270cc55db11f3a1c22dc45270168
darwin: use destructor function instead of atexit to cleanup state

Using an atexit function to cleanup the state could cause weird interactions
with other atexit functions. Ensure the darwin cleanup function is called
last by making it a destructor function instead.

Signed-off-by: Nathan Hjelm <hjelmn@me.com>
libusb/os/darwin_usb.c
libusb/version_nano.h