GNOME Bugzilla – Bug 162093
possible leak of a gtk_style in translucency code
Last modified: 2005-03-02 03:42:03 UTC
Most of the translucency support in applets is derived from this part of code in the trashapplet : case PANEL_PIXMAP_BACKGROUND: style = gtk_style_copy (GTK_WIDGET (window_menu->menu_bar)->style); if (style->bg_pixmap[GTK_STATE_NORMAL]) g_object_unref (style->bg_pixmap[GTK_STATE_NORMAL]); style->bg_pixmap[GTK_STATE_NORMAL] = g_object_ref (pixmap); gtk_widget_set_style (GTK_WIDGET (window_menu->menu_bar), style); break; According to comments in bug 160450, this could be a leak as the gtk_style is never unref'd. If this is actually the case, this would have to be corrected in all applets that used the same code.
Are you able to confirm this with valgrind?
Davyd: I could confirm this with valgrind. And I fixed this in the applets of gnome-panel.
Can you link to reference code (perhaps the diff from CVS)? I want to make sure we get it right, given how close we are to freeze. Thanks.
Here it is: http://cvs.gnome.org/viewcvs/gnome-panel/applets/clock/clock.c?r1=1.164&r2=1.165
Is it too late to make the change now ? I need to apply the same fix to the gnome-dictionary applet.
You should probably ask the release team for approval.
This is fixed in g-a, the bug wasn't closed.