Comment 8 for bug 190894

Revision history for this message
Ronny Lorenz (raumzeit) wrote :

In my opinion, this bug was introduced with revision 142!
A fix in utils/render.c creates copies of the GdkPixbuf which in turn get free'd only, if the height or width of the area drawn changes. I created a patch for this issue that solved the problem for me (running rev. 186)

Here is the patch:

--- ../gdesklets/utils/render.c 2010-05-24 12:56:05.000000000 +0200
+++ utils/render.c 2012-01-30 10:56:46.163768331 +0100
@@ -89,7 +89,10 @@
   /* set image */
   gtk_image_set_from_pixbuf (image, scaled);

+// this condition is causing a memory leak since rev. 142
+/*
   if (srcwidth != width || srcheight != height)
+*/
     g_object_unref (scaled);
 }

Can anyone confirm this?