Commits

Peter Hosey committed fb0493e

Switched to @autoreleasepool.

  • Participants
  • Parent commits c4c7634

Comments (0)

Files changed (1)

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];
 
 	dispatch_main();
 
-	[pool drain];
+	} //@autoreleasepool
 	return EXIT_SUCCESS;
 }