Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NSAutoreleasePool *pool = nil;
- for (int x = 0; x < 100000; ++x) {
- if (x%1000) {
- [pool release];
- pool = [[NSAutoreleasePool alloc] init];
- }
- // Do memory intensive stuff that adds a lot of stuff to the autorelease pool
- }
- [pool release];
Add Comment
Please, Sign In to add comment