while True:
    icon = Growl.Image.imageFromPath("some-icon.png")
    del icon

runs fine and in constant space with the patch. It does indeed leak
without it.

On May 9, 6:11 pm, Peter Hosey <[email protected]> wrote:
> On May 9, 2011, at 08:06:51, ahihi wrote:
>
> > The leaks list seems to indicate a lot of leaks coming from 
> > PyString_FromStringAndSize. I'm completely new to Instruments, so let me 
> > know if you need some more specific information.
>
> Before I proceed further, can you confirm whether that patch works (at least, 
> doesn't crash)?
>
> I think it does fix a leak, but your program wouldn't show it because it 
> creates one image and keeps it for its entire lifetime. Creating the image 
> and then destroying the Python object for it (del myImage) should show it.
>
> (The module doesn't build for me, probably because I'm in Xcode 4 right now, 
> so I can't test any of this.)

-- 
You received this message because you are subscribed to the Google Groups 
"Growl Discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/growldiscuss?hl=en.

Reply via email to