@@ -178,11 +178,11 @@ @end @implementation TestsAppDelegate (ForwardingTests) - (void)forwardingTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); TEST(@"Forwarding a message and adding a class method", R([ForwardingTest test]) && success && R([ForwardingTest test]) && forwardings == 1); @@ -229,8 +229,8 @@ @"stret", OFNotImplementedException, [t forwardingTargetSelfStRetTest]) # endif #endif - [pool drain]; + objc_autoreleasePoolPop(pool); } @end