Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-23 Thread Vreixo Formoso Lopes
Hi all, please correct me if I'm wrong, I haven't looked at this since one or two years, but I am pretty sure about the reason for the leak in the test code. As it never enters gtk main loop, our reference to the underlying GdkPixbuf object is never released. That is because we release it in a

Re: [Java-gnome-developer] Pixbuf memory leak

2011-10-23 Thread Andrew Cowie
On Fri, 2011-10-21 at 10:09 +0100, William Temperley wrote: > I'm fairly sure it's Pixbuf that's causing this. For a bit of > background, I do a lot of drawing hefty polygons onto Cairo canvases > and draw images using the Pixbuf. Hm. Have you considered using a Cairo ImageSurface? You can write