[Openmcl-devel] Cocoa and memory management

Ron Garret 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
> http://clozure.com/mailman/listinfo/openmcl-devel

More information about the Openmcl-devel mailing list