Join GitHub today
NSAutoreleasePool no longer needed? #1060
There are many uses of NSAutoreleasePool in the MacOs code, which I remember needed to be added otherwise we'd get "Autoreleased with no pool in place".
Many were added in commit 9acf685
However when I deleted one, nothing happened. Maybe they are not needed anymore. Does anyone know if changes to Cocoa's memory management have changed things. I know that since 10.7, automatic reference counting has been introduced and it's preferable to use
Does anyone know for sure? I'm thinking that constantly creating and deleting these pools is going to be overhead, and also complicates the flow as we need to drain and release them on every exit path from the function.