[geocode-glib] lib: Fix leak when adding GIcon to geocoding results
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [geocode-glib] lib: Fix leak when adding GIcon to geocoding results
- Date: Mon, 16 Sep 2013 17:48:40 +0000 (UTC)
commit ffb01ace688dd62c9f7aa40637c136db81873bf1
Author: Bastien Nocera <hadess hadess net>
Date:   Mon Sep 9 19:55:53 2013 -0300
    lib: Fix leak when adding GIcon to geocoding results
    
    https://bugzilla.gnome.org/show_bug.cgi?id=707811
 geocode-glib/geocode-forward.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/geocode-glib/geocode-forward.c b/geocode-glib/geocode-forward.c
index 534ba72..4afada8 100644
--- a/geocode-glib/geocode-forward.c
+++ b/geocode-glib/geocode-forward.c
@@ -512,6 +512,7 @@ fill_place_from_entry (const char   *key,
                 if (g_str_equal (key, "icon")) {
                        GFile *file = g_file_new_for_uri (value);
                        GIcon *icon = g_file_icon_new (file);
+                       g_object_unref (file);
 
                        g_object_set (G_OBJECT (place), "icon", icon, NULL);
                        g_object_unref (icon);
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]