[Openmcl-devel] Cocoa and memory management
ron at flownet.com
Fri Jul 5 14:03:20 PDT 2013
Yes, that seems to be the Right Answer. Apparently, the ns-image constructor allocates stuff in the autorelease pool. Thanks!
On Jul 5, 2013, at 12:13 PM, Willem Rein Oudshoorn wrote:
> Just my two cents,
> I do not think that Cocoa guarentees that if you do
> [[[SomeNiceClass alloc] initWith: ...] release]
> that all memory is immediately freed.
> I think that the init/release methods of SomeNiceClass are allowed
> to autorelease some ivars.
> One way of testing this is to explicitly create and release autorelease pools
> in your loop.
> Wim Oudshoorn.
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel