[totem] grilo: Use g_list_free_full()
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] grilo: Use g_list_free_full()
- Date: Mon, 18 Mar 2013 18:19:34 +0000 (UTC)
commit 66c61032add587387e1584cbf5651dea18777afd
Author: Bastien Nocera <hadess hadess net>
Date: Mon Mar 18 16:33:04 2013 +0100
grilo: Use g_list_free_full()
src/plugins/grilo/totem-grilo.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/grilo/totem-grilo.c b/src/plugins/grilo/totem-grilo.c
index dd304c1..87f5fc4 100644
--- a/src/plugins/grilo/totem-grilo.c
+++ b/src/plugins/grilo/totem-grilo.c
@@ -987,8 +987,7 @@ show_popup_menu (TotemGriloPlugin *self, GtkWidget *view, GdkEventButton *event)
&iter,
(GtkTreePath *) sel_list->data);
- g_list_foreach (sel_list, (GFunc) gtk_tree_path_free, NULL);
- g_list_free (sel_list);
+ g_list_free_full (sel_list, (GDestroyNotify) gtk_tree_path_free);
}
/* Get rid of previously selected media */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]