Explorar el Código

Free the correct variable.

Ryan C. Gordon hace 11 años
padre
commit
96f09df730
Se han modificado 1 ficheros con 1 adiciones y 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) {