@@ -22,11 +22,11 @@ static OFString *module = @"OFXMLNode"; @implementation TestsAppDelegate (OFXMLNodeTests) - (void)XMLNodeTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); id nodes[4]; OFArray *a; TEST(@"+[elementWithName:]", (nodes[0] = [OFXMLElement elementWithName: @"foo"]) && @@ -136,8 +136,8 @@ TEST(@"-[XMLStringWithIndentation:]", [[[OFXMLElement elementWithXMLString: @"a\nb" @""] XMLStringWithIndentation: 2] isEqual: @"\n \n a\nb\n \n \n"]) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end