[gnome-initial-setup] goa: Fix a GIcon leak



commit 526b4fcaf51dde4ce3ccf64eb4642751080e8c7d
Author: Rui Matos <tiagomatos gmail com>
Date:   Wed Oct 25 18:13:04 2017 +0200

    goa: Fix a GIcon leak
    
    goa_provider_get_provider_icon() transfers the returned reference.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=787510

 gnome-initial-setup/pages/goa/gis-goa-page.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnome-initial-setup/pages/goa/gis-goa-page.c b/gnome-initial-setup/pages/goa/gis-goa-page.c
index 6101981..fcdcabe 100644
--- a/gnome-initial-setup/pages/goa/gis-goa-page.c
+++ b/gnome-initial-setup/pages/goa/gis-goa-page.c
@@ -136,6 +136,7 @@ add_provider_to_list (GisGoaPage *page, const char *provider_type)
 
   icon = goa_provider_get_provider_icon (provider, NULL);
   image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DIALOG);
+  g_object_unref (icon);
 
   provider_name = goa_provider_get_provider_name (provider, NULL);
   markup = g_strdup_printf ("<b>%s</b>", provider_name);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]