@@ -133,11 +133,11 @@ #endif @implementation TestsAppDelegate (ScryptTests) - (void)scryptTests { - OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; + void *pool = objc_autoreleasePoolPush(); uint32_t salsa20Buffer[16]; uint32_t blockMixBuffer[32]; uint32_t ROMixBuffer[32], ROMixTmp[17 * 32]; unsigned char output[64]; @@ -174,8 +174,8 @@ R(of_scrypt(8, 1048576, 1, (unsigned char *)"SodiumChloride", 14, "pleaseletmein", 13, output, 64)) && memcmp(output, testVector4, 64) == 0) #endif - [pool drain]; + objc_autoreleasePoolPop(pool); } @end