@@ -107,11 +107,11 @@ [[OFRunLoop mainRunLoop] stop]; } - (void)HTTPClientTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); HTTPClientTestsServer *server; OFURL *URL; OFHTTPClient *client; OFHTTPRequest *request; OFData *data; @@ -151,8 +151,8 @@ (data = [response readDataUntilEndOfStream]) && data.count == 7 && memcmp(data.items, "foo\nbar", 7) == 0) [server join]; - [pool drain]; + objc_autoreleasePoolPop(pool); } @end