File mutter-bsc1093541-fix-window-icon-leak.patch of Package mutter.11226
diff --git a/src/core/window.c b/src/core/window.c
index 4dff32b..a9e21c5 100644
--- a/src/core/window.c
+++ b/src/core/window.c
@@ -4898,6 +4898,7 @@ load_default_window_icon (int size)
{
GtkIconTheme *theme = gtk_icon_theme_get_default ();
GdkPixbuf *pixbuf;
+ cairo_surface_t *surface;
const char *icon_name;
if (gtk_icon_theme_has_icon (theme, META_DEFAULT_ICON_NAME))
@@ -4906,7 +4907,10 @@ load_default_window_icon (int size)
icon_name = "image-missing";
pixbuf = gtk_icon_theme_load_icon (theme, icon_name, size, 0, NULL);
- return gdk_cairo_surface_create_from_pixbuf (pixbuf, 1, NULL);
+ surface = gdk_cairo_surface_create_from_pixbuf (pixbuf, 1, NULL);
+
+ g_object_unref (pixbuf);
+ return surface;
}
static cairo_surface_t *