]> err.no Git - yubikey-personalization/commitdiff
IOHIDManager object have to be disposed of with CFRelease()
authorKlas Lindfors <klas@yubico.com>
Fri, 5 Oct 2012 19:36:42 +0000 (20:36 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 8 Oct 2012 07:20:24 +0000 (08:20 +0100)
ykcore/ykcore_osx.c

index 7d343a046a606b70368f56f5c69c42fe82965bb8..535a2c0a52a40941ef097ff4f0a40f7142e4f02e 100644 (file)
@@ -55,6 +55,7 @@ int _ykusb_stop(void)
 {
        if (ykosxManager != NULL) {
                _ykusb_IOReturn = IOHIDManagerClose( ykosxManager, 0L );
+               CFRelease(ykosxManager);
        
                if (_ykusb_IOReturn == kIOReturnSuccess) {
                        ykosxManager = NULL;