@@ -25,11 +25,11 @@ const char *str = "Hello!"; @implementation TestsAppDelegate (OFDataTests) - (void)dataTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFMutableData *mutable; OFData *immutable; void *raw[2]; of_range_t range; @@ -206,8 +206,8 @@ EXPECT_EXCEPTION(@"Detect out of range in -[removeItemsInRange:]", OFOutOfRangeException, [mutable removeItemsInRange: of_range(mutable.count, 1)]) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end