I came across a problem that seems to be called "drowning" in autorelease pools.
My code creates and destroys objects correctly. However, I use some class methods that autorelease several variables without my knowing about it. Considering they loop thousands and thousands of times every minute... I find myself drowning in thousands of unreleased objects lost somewhere in the program.
2 questions:
So either I do not use class methods AT ALL - is that a permanent solution, or, even so, will some instance methods (Foundation, UIKit) still autorelease objects without my knowing about it?
or I can alloc an autorelease pool prior to calling class methods and draining it after calling the class methods - would this be a permanent solution?