@@ -209,11 +209,11 @@ @implementation TestsAppDelegate (OFStringTests) - (void)stringTestsWithClass: (Class)stringClass mutableClass: (Class)mutableStringClass { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFMutableString *s[3]; OFString *is; OFArray *a; size_t i; const of_unichar_t *ua; @@ -1422,11 +1422,11 @@ TEST(@"-[enumerateLinesUsingBlock:]", ok) #endif #undef C - [pool drain]; + objc_autoreleasePoolPop(pool); } - (void)stringTests { module = @"OFString";