From 96f09df73000c76428f853ecb8c05bd8d4044d27 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 23 Feb 2014 01:24:46 -0500 Subject: [PATCH] Free the correct variable. --- src/joystick/darwin/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c index b38f49665..bdface777 100644 --- a/src/joystick/darwin/SDL_sysjoystick.c +++ b/src/joystick/darwin/SDL_sysjoystick.c @@ -461,7 +461,7 @@ CreateHIDDeviceMatchDictionary(const UInt32 page, const UInt32 usage, int *okay) CFRelease(pageNumRef); } if (usageNumRef) { - CFRelease(pageNumRef); + CFRelease(usageNumRef); } if (!retval) {