@@ -63,11 +63,11 @@ @end @implementation TestsAppDelegate (OFStreamTests) - (void)streamTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); size_t pageSize = [OFSystemInfo pageSize]; StreamTester *t = [[[StreamTester alloc] init] autorelease]; OFString *str; char *cstr; @@ -77,8 +77,8 @@ TEST(@"-[readLine]", [[t readLine] isEqual: @"foo"] && (str = [t readLine]).length == pageSize - 3 && !strcmp(str.UTF8String, cstr)) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end