@@ -22,11 +22,11 @@ static OFString *module = @"OFINIFile"; @implementation TestsAppDelegate (OFINIFileTests) - (void)INIFileTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFString *output = @"[tests]\r\n" @"foo=baz\r\n" @"foobar=baz\r\n" @";comment\r\n" @"new=new\r\n" @@ -139,8 +139,8 @@ [[OFFileManager defaultManager] removeItemAtPath: writePath]; #else (void)output; #endif - [pool drain]; + objc_autoreleasePoolPop(pool); } @end