Guest User

Untitled

a guest
Feb 20th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. NSAutoreleasePool *pool = nil;
  2. for (int x = 0; x < 100000; ++x) {
  3. if (x%1000) {
  4. [pool release];
  5. pool = [[NSAutoreleasePool alloc] init];
  6. }
  7.  
  8. // Do memory intensive stuff that adds a lot of stuff to the autorelease pool
  9.  
  10. }
  11. [pool release];
Add Comment
Please, Sign In to add comment