Explorar o código

Free the correct variable.

Ryan C. Gordon %!s(int64=11) %!d(string=hai) anos
pai
achega
96f09df730
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/joystick/darwin/SDL_sysjoystick.c

+ 1 - 1
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) {