From: Klas Lindfors Date: Fri, 5 Oct 2012 19:36:42 +0000 (+0100) Subject: IOHIDManager object have to be disposed of with CFRelease() X-Git-Tag: v1.8.1~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecabb156b4b2eb8fd379eb1db1a964683adf7491;p=yubikey-personalization IOHIDManager object have to be disposed of with CFRelease() --- diff --git a/ykcore/ykcore_osx.c b/ykcore/ykcore_osx.c index 7d343a0..535a2c0 100644 --- a/ykcore/ykcore_osx.c +++ b/ykcore/ykcore_osx.c @@ -55,6 +55,7 @@ int _ykusb_stop(void) { if (ykosxManager != NULL) { _ykusb_IOReturn = IOHIDManagerClose( ykosxManager, 0L ); + CFRelease(ykosxManager); if (_ykusb_IOReturn == kIOReturnSuccess) { ykosxManager = NULL;