[nautilus] search-popover: unref date time when row is destroyed



commit 27d4951887dd86cd8b142f3f43fa89ae030d523c
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 23 19:49:56 2016 -0300

    search-popover: unref date time when row is destroyed
    
    https://bugzilla.gnome.org/show_bug.cgi?id=770306

 src/nautilus-search-popover.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-search-popover.c b/src/nautilus-search-popover.c
index 387cbe8..d68bdda 100644
--- a/src/nautilus-search-popover.c
+++ b/src/nautilus-search-popover.c
@@ -445,7 +445,10 @@ fill_fuzzy_dates_listbox (NautilusSearchPopover *popover)
         g_ptr_array_add (date_range, g_date_time_ref (now));
         label = get_text_for_date_range (date_range);
         row = create_row_for_label (label, normalized == 1);
-        g_object_set_data (G_OBJECT (row), "date", g_date_time_ref (current_date));
+        g_object_set_data_full (G_OBJECT (row),
+                                "date",
+                                g_date_time_ref (current_date),
+                                (GDestroyNotify) g_date_time_unref);
 
         gtk_container_add (GTK_CONTAINER (popover->dates_listbox), row);
 


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