[gtk+/wip/gbsneto/placessidebar-locations] placessidebar: use g_list_free_full
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/gbsneto/placessidebar-locations] placessidebar: use g_list_free_full
- Date: Mon, 1 Jun 2015 00:42:43 +0000 (UTC)
commit e1bdf653a1bf1e2e7781f3709c5b12aa2b2d33b9
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun May 31 21:37:19 2015 -0300
placessidebar: use g_list_free_full
gtk/gtkplacessidebar.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c
index 77c0e8a..b9cbe13 100644
--- a/gtk/gtkplacessidebar.c
+++ b/gtk/gtkplacessidebar.c
@@ -1104,9 +1104,8 @@ update_places (GtkPlacesSidebar *sidebar)
g_free (name);
g_free (tooltip);
}
- g_object_unref (volume);
}
- g_list_free (volumes);
+ g_list_free_full (volumes, g_object_unref);
}
else
{
@@ -1133,9 +1132,8 @@ update_places (GtkPlacesSidebar *sidebar)
g_free (name);
}
}
- g_object_unref (drive);
}
- g_list_free (drives);
+ g_list_free_full (drives, g_object_unref);
/* add all volumes that is not associated with a drive */
volumes = g_volume_monitor_get_volumes (volume_monitor);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]