I am not sure I am understanding the NSAutoReleasePool concept and so I tried to do something with the example to see what would happen.
I move the alloc of the pool outside of the while loop and then ran the code in Instruments. It ended up having memory leaks. The call to [pool drain] is still inside the loop, so why does it matter the scope that the pool was created in?
Moving the alloc of the pool back inside the while loop fixed the leaks.
So.. anyone up for explaining to me what is happening?