@@ -35,11 +35,11 @@ @end @implementation TestsAppDelegate (OFThreadTests) - (void)threadTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); TestThread *t; OFMutableDictionary *d; TEST(@"+[thread]", (t = [TestThread thread])) @@ -48,8 +48,8 @@ TEST(@"-[join]", [[t join] isEqual: @"success"]) TEST(@"-[threadDictionary]", (d = [OFThread threadDictionary]) && [d objectForKey: @"foo"] == nil) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end