Skip to content

Instantly share code, notes, and snippets.

@akio0911
Created May 14, 2009 03:47
Show Gist options
  • Save akio0911/111469 to your computer and use it in GitHub Desktop.
Save akio0911/111469 to your computer and use it in GitHub Desktop.
- (void)methodA
{
id obj1;
id obj2;
id arp;
obj1 = [[Foo alloc] init];
obj2 = [[Foo alloc] init];
[obj1 autorelease];
arp = [[NSAutoreleasePool alloc] init];
[obj2 autorelease];
[arp release];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment