Hey, I am making a cocoa touch static library, And I have this problem:
I am running my project in the simulator with the Leaks instrument, And I am coming up with leaks for autoreleased objects.
I know for a fact that I have at least one NSAutoreleasePool
in place at a time (in my main()
method), my question is, how often should I put in others (I am developing for iPhone and iPad if that matters)
UPDATE: I have figured out that, for some reason, my code isn't exiting out of the UIApplicationMain()
call on iOS 4, I am just getting a SIGKILL
signal, and my autorelease pool isn't draining. How can I fix that (I mean the app getting a SIGKILL
)
Thanks