Index: src/platform/Nintendo3DS/OFGameController.m ================================================================== --- src/platform/Nintendo3DS/OFGameController.m +++ src/platform/Nintendo3DS/OFGameController.m @@ -41,11 +41,11 @@ void *pool = objc_autoreleasePoolPush(); controllers = [[OFArray alloc] initWithObject: [[[OFGameController alloc] of_init] autorelease]]; - objc_autoreleasePoolPop(); + objc_autoreleasePoolPop(pool); } @implementation OFGameController + (OFArray OF_GENERIC(OFGameController *) *)controllers { Index: src/platform/NintendoDS/OFGameController.m ================================================================== --- src/platform/NintendoDS/OFGameController.m +++ src/platform/NintendoDS/OFGameController.m @@ -41,11 +41,11 @@ void *pool = objc_autoreleasePoolPush(); controllers = [[OFArray alloc] initWithObject: [[[OFGameController alloc] of_init] autorelease]]; - objc_autoreleasePoolPop(); + objc_autoreleasePoolPop(pool); } @implementation OFGameController + (OFArray OF_GENERIC(OFGameController *) *)controllers {