Skip to content

Commit

Permalink
Removed FIXME.
Browse files Browse the repository at this point in the history
These CFStrings follow "The Get Rule" and should not be explicitly released.
  • Loading branch information
icculus committed Apr 26, 2011
1 parent 4d3f0d4 commit 72ac1bd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions macosx_hidmanager.c
Expand Up @@ -49,8 +49,6 @@ static int is_trackpad(IOHIDDeviceRef device)
if (!CFStringGetCString(cfstr, cstr, sizeof (cstr), kCFStringEncodingUTF8))
cstr[0] = '\0';

/* !!! FIXME: CFRelease(cfstr) ? */

/*
* This stupid thing shows up as two logical devices. One does
* most of the mouse events, the other does the mouse wheel.
Expand Down Expand Up @@ -368,7 +366,6 @@ static const char *macosx_hidmanager_name(unsigned int index)

if (cfstr)
{
/* !!! FIXME: CFRelease(cfstr) */
if (CFStringGetCString(cfstr,cstr,sizeof (cstr),kCFStringEncodingUTF8))
return cstr;
} /* if */
Expand Down

0 comments on commit 72ac1bd

Please sign in to comment.