[gnome-control-center] background: Fix a memory leak with wallpaper loading



commit 4ecb35ca12292f06af3eb0189668f513e6ee3a97
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Oct 4 21:34:50 2013 +0200

    background: Fix a memory leak with wallpaper loading
    
    This removes an extra g_object_ref when inserting items to GtkListStore:
    the list store takes care of incrementing the reference count itself and
    the caller doesn't need to do it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=709453

 panels/background/bg-wallpapers-source.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/panels/background/bg-wallpapers-source.c b/panels/background/bg-wallpapers-source.c
index d95b333..2e8b21b 100644
--- a/panels/background/bg-wallpapers-source.c
+++ b/panels/background/bg-wallpapers-source.c
@@ -113,7 +113,7 @@ load_wallpapers (gchar              *key,
 
   gtk_list_store_set (store, &iter,
                       0, pixbuf,
-                      1, g_object_ref (item),
+                      1, item,
                       2, cc_background_item_get_name (item),
                       -1);
 


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