@@ -72,11 +72,11 @@ }; @implementation TestsAppDelegate (OFMethodSignatureTests) - (void)methodSignatureTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); OFMethodSignature *ms; TEST(@"-[:signatureWithObjCTypes:] #1", (ms = [OFMethodSignature signatureWithObjCTypes: "i28@0:8S16*20"]) && ms.numberOfArguments == 4 && @@ -170,8 +170,8 @@ TEST(@"of_alignof_type_encoding() #6", of_alignof_type_encoding(@encode(struct test1_struct [5])) == OF_ALIGNOF(struct test1_struct [5])) - [pool drain]; + objc_autoreleasePoolPop(pool); } @end