From 50dabc9b2511bfa4589e8e53f286ded9e0b03bad Mon Sep 17 00:00:00 2001 From: hieplpvip Date: Sun, 21 Jul 2019 12:43:37 +0700 Subject: [PATCH] Fix code style --- macrogaura/macrogaura.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macrogaura/macrogaura.c b/macrogaura/macrogaura.c index eeac733..871cc79 100644 --- a/macrogaura/macrogaura.c +++ b/macrogaura/macrogaura.c @@ -431,7 +431,7 @@ int handleUsb(Messages *pMessages) { CFSetRef deviceCFSetRef= NULL; // create a IO HID Manager reference - tIOHIDManagerRef = IOHIDManagerCreate( kCFAllocatorDefault, kIOHIDOptionsTypeNone ); + tIOHIDManagerRef = IOHIDManagerCreate(kCFAllocatorDefault, kIOHIDOptionsTypeNone); if (!tIOHIDManagerRef) goto exit; // set the HID device matching dictionary @@ -480,7 +480,7 @@ int handleUsb(Messages *pMessages) { exit: if (deviceCFSetRef) CFRelease(deviceCFSetRef); if (tIOHIDDeviceRefs) free(tIOHIDDeviceRefs); - if (tIOHIDManagerRef) CFRelease( tIOHIDManagerRef); + if (tIOHIDManagerRef) CFRelease(tIOHIDManagerRef); return 0; }