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