diff options
author | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-08-23 19:49:56 -0300 |
---|---|---|
committer | Georges Basile Stavracas Neto <georges.stavracas@gmail.com> | 2016-09-22 17:47:51 -0300 |
commit | 27d4951887dd86cd8b142f3f43fa89ae030d523c (patch) | |
tree | 387122841196a128c72f03b1a551e72d986fe7a5 /src/nautilus-search-popover.c | |
parent | 2f928bd9288efeda98becbaf631b9ae479b81ba8 (diff) | |
download | nautilus-27d4951887dd86cd8b142f3f43fa89ae030d523c.tar.gz |
search-popover: unref date time when row is destroyed
https://bugzilla.gnome.org/show_bug.cgi?id=770306
Diffstat (limited to 'src/nautilus-search-popover.c')
-rw-r--r-- | 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 387cbe8c9..d68bdda9f 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); |