[vtk-developers] Use of autorelease in Cocoa classes
Sean McBride
sean at rogue-research.com
Fri Feb 1 15:43:00 EST 2013
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