[empathy] use g_list_free_full()



commit 4a5169bf01a7a67bfa08b2d596c6d4f5e92a73b6
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue May 17 10:12:12 2011 +0200

    use g_list_free_full()

 src/empathy-invite-participant-dialog.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/empathy-invite-participant-dialog.c b/src/empathy-invite-participant-dialog.c
index 379b231..a7b1a36 100644
--- a/src/empathy-invite-participant-dialog.c
+++ b/src/empathy-invite-participant-dialog.c
@@ -210,8 +210,7 @@ filter_func (GtkTreeModel *model,
         }
     }
 
-  g_list_foreach (members, (GFunc) g_object_unref, NULL);
-  g_list_free (members);
+  g_list_free_full (members, g_object_unref);
 
 out:
   tp_clear_object (&individual);



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