@@ -22,11 +22,11 @@ static OFString *module = @"OFLocale"; @implementation TestsAppDelegate (OFLocaleTests) - (void)localeTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); PRINT(GREEN, @"Language: %@", [OFLocale language]); PRINT(GREEN, @"Territory: %@", [OFLocale territory]); @@ -33,8 +33,8 @@ PRINT(GREEN, @"Encoding: %@", of_string_name_of_encoding([OFLocale encoding])); PRINT(GREEN, @"Decimal point: %@", [OFLocale decimalPoint]); - [pool drain]; + objc_autoreleasePoolPop(pool); } @end