Free the correct variable.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 23 Feb 2014 01:24:46 -0500
changeset 8245 2c63c27c4d1d
parent 8244 bfea1a568a0a
child 8246 e55dadcb9155
Free the correct variable.
src/joystick/darwin/SDL_sysjoystick.c
--- a/src/joystick/darwin/SDL_sysjoystick.c	Sun Feb 23 01:10:33 2014 -0500
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Sun Feb 23 01:24:46 2014 -0500
@@ -461,7 +461,7 @@
         CFRelease(pageNumRef);
     }
     if (usageNumRef) {
-        CFRelease(pageNumRef);
+        CFRelease(usageNumRef);
     }
 
     if (!retval) {