Fixed memory leak.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 09 Aug 2012 10:59:23 -0400
changeset 123 8228b0663045
parent 122 0b74c0d4a9e6
child 124 2e0dbebdbd28
Fixed memory leak.
macosx_hidmanager.c
--- a/macosx_hidmanager.c	Thu Aug 09 10:59:17 2012 -0400
+++ b/macosx_hidmanager.c	Thu Aug 09 10:59:23 2012 -0400
@@ -73,6 +73,8 @@
         return NULL;
     } /* if */
 
+    CFRelease(cfstr);
+
     ptr = realloc(buf, strlen(buf) + 1);  /* shrink down our allocation. */
     if (ptr != NULL)
         buf = (char *) ptr;