1. Peter Hosey
  2. PRHTask


PRHTask / PRHTaskTest / PRHTaskTest / main.m

Diff from to

File PRHTaskTest/PRHTaskTest/main.m

 #import "PRHTask.h"
 int main (int argc, char **argv) {
-	NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
+	@autoreleasepool {
 	//When using the varargs method, strings and arrays of strings can be mixed in the arguments parameter list.
 	PRHTask *task = [PRHTask taskWithProgramName:@"echo" arguments:@"I am the very model of a", [NSArray arrayWithObjects:@"modern", @"Major-General", nil], nil];
-	[pool drain];
+	} //@autoreleasepool
 	return EXIT_SUCCESS;