@@ -56,11 +56,11 @@ @""); @implementation TestsAppDelegate (OFPLISTParser) - (void)propertyListTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFArray *array = [OFArray arrayWithObjects: @"Hello", [OFData dataWithItems: "World!" count: 6], [OFDate dateWithTimeIntervalSince1970: 1521030896], @@ -112,8 +112,8 @@ EXPECT_EXCEPTION( @"-[propertyListValue] detecting invalid format #5", OFInvalidFormatException, [PLIST(@"") propertyListValue]) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end