[vtk-developers] Use of autorelease in Cocoa classes

Berk Geveci berk.geveci at kitware.com
Fri Feb 1 16:09:52 EST 2013


Roger roger.

On Fri, Feb 1, 2013 at 3:43 PM, Sean McBride <sean at rogue-research.com> wrote:
> On Fri, 1 Feb 2013 14:28:11 -0500, Berk Geveci said:
>
>>To provide a bit more detail. When I run the batch program in
>>Instruments, I see bunch of leaks originating from:
>>
>>  NSOpenGLContext* context = [[[NSOpenGLContext alloc]
>>                              initWithFormat:pixelFormat
>>                              shareContext:nil] autorelease];
>>
>>These leaks go away if I yank autorelease and add a release in DestroyWindow.
>>
>>PS: Please be bear with me. My Objective C understanding is extremely limited.
>
> hmmm, I just looked quickly, and things may indeed be over-retained.... let me look more closely and I'll get back to you next week...
>
> Cheers,
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng                 sean at rogue-research.com
> Rogue Research                        www.rogue-research.com
> Mac Software Developer              Montréal, Québec, Canada
>
>



More information about the vtk-developers mailing list