@@ -27,11 +27,11 @@ }; @implementation TestsAppDelegate (OFListTests) - (void)listTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFList *list; OFEnumerator *enumerator; of_list_object_t *loe; OFString *obj; size_t i; @@ -144,8 +144,8 @@ ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end