Skip to content

Instantly share code, notes, and snippets.

@sbrocket
Created August 13, 2008 23:37
Show Gist options
  • Save sbrocket/5335 to your computer and use it in GitHub Desktop.
Save sbrocket/5335 to your computer and use it in GitHub Desktop.
NSAutoreleasePool *pool = nil;
NSString *blah;
for (UINT a=0; a<9999999; a++) {
if (a%1000==0) {
if (pool) {
[pool release];
pool = nil;
}
pool = [[NSAutoreleasePool alloc] init];
}
blah = [NSString stringWithString:@"randomJunklongstringhere"];
}
if (pool) {
[pool release];
pool = nil;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment