[OGo-Developer] Missing release in SkyNoteList?

Helge Hess developer@opengroupware.org
Thu, 15 Mar 2007 03:38:49 +0100


On Mar 15, 2007, at 03:25, Adam Tauno Williams wrote:
> In looking at the patch for Bug#1627 I notices that there is an  
> "NSArray
> *projects", and it doesn't get released in the dealloc.  (This wasn't
> introduced by the patch, I just noticed it because of the patch).  A
> leak?

Looks like.

> Although neither in the page code or the template(s) do I see anything
> that looks like it refers to "projects".  "project", but not  
> "projects".

Try removing the ivar, do a "make clean all" and see what happens :-)

In SOPE templates only access ivars using accessor methods (- 
setIvar:,-ivar), so if an ivar isn't referred from code, it can't be  
used by a template.
[this is different to other ObjC Foundation libraries]

Greets,
   Helge
-- 
Helge Hess
http://www.helgehess.eu/