Skip to content

Commit

Permalink
Free the correct variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Feb 23, 2014
1 parent 295acea commit 96f09df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -461,7 +461,7 @@ CreateHIDDeviceMatchDictionary(const UInt32 page, const UInt32 usage, int *okay)
CFRelease(pageNumRef);
}
if (usageNumRef) {
CFRelease(pageNumRef);
CFRelease(usageNumRef);
}

if (!retval) {
Expand Down

0 comments on commit 96f09df

Please sign in to comment.