@@ -320,11 +320,11 @@ return nil; } - (void)XMLParserTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); const char *str = "\xEF\xBB\xBF" "\r\r" " \n" " \r\n" " \n" @@ -390,8 +390,8 @@ parser = [OFXMLParser parser]; EXPECT_EXCEPTION(@"Detection of invalid XML processing instructions #3", OFMalformedXMLException, [parser parseString: @""]) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end