[gnome-photos/wip/foo: 5/10] properties-dialog: Unref the GFiles



commit 7eed4a93d1b9cf03b1782ea5c55183e5be921fbd
Author: Debarshi Ray <debarshir gnome org>
Date:   Mon Mar 25 23:34:28 2013 +0100

    properties-dialog: Unref the GFiles

 src/photos-properties-dialog.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 9abedb9..3b4e3a9 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -244,6 +244,9 @@ photos_properties_dialog_constructed (GObject *object)
 
       source_data = gtk_link_button_new_with_label (source_uri, source_path);
       gtk_widget_set_halign (source_data, GTK_ALIGN_START);
+
+      g_object_unref (source_link);
+      g_object_unref (file);
     }
 
   gtk_grid_attach_next_to (GTK_GRID (grid), source_data, source, 1, 2, 1);


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