@@ -50,11 +50,11 @@ } @implementation TestsAppDelegate (OFBlockTests) - (void)blockTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); __block int x; void (^s)(void) = ^ { x = 0; }; void (^m)(void); int (^v)(void); @@ -99,8 +99,8 @@ #ifndef __clang_analyzer__ TEST(@"Autorelease a malloc block", R([m autorelease])) #endif - [pool drain]; + objc_autoreleasePoolPop(pool); } @end