[gnome-control-center/gnome-3-8] background: Fix a memory leak with wallpaper loading
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center/gnome-3-8] background: Fix a memory leak with wallpaper loading
- Date: Mon, 7 Oct 2013 10:57:55 +0000 (UTC)
commit 6923c4ca0882e4240e6f18acd64b33b3e55d6866
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 03978f2..2e5a6d2 100644
--- a/panels/background/bg-wallpapers-source.c
+++ b/panels/background/bg-wallpapers-source.c
@@ -128,7 +128,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]