From ecabb156b4b2eb8fd379eb1db1a964683adf7491 Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Fri, 5 Oct 2012 20:36:42 +0100 Subject: [PATCH] IOHIDManager object have to be disposed of with CFRelease() --- ykcore/ykcore_osx.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5