[telepathy-gabble/master] gabble_search_channel_init: use g_boxed_free

Guillaume Desmottes guillaume.desmottes at collabora.co.uk
Mon Aug 24 07:48:54 PDT 2009


---
 src/search-channel.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/src/search-channel.c b/src/search-channel.c
index 6d9c1cd..645d95d 100644
--- a/src/search-channel.c
+++ b/src/search-channel.c
@@ -1068,11 +1068,7 @@ gabble_search_channel_init (GabbleSearchChannel *self)
 static void
 free_info (GPtrArray *info)
 {
-  GValue v = { 0, };
-
-  g_value_init (&v, GABBLE_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST);
-  g_value_take_boxed (&v, info);
-  g_value_unset (&v);
+  g_boxed_free (GABBLE_ARRAY_TYPE_CONTACT_INFO_FIELD_LIST, info);
 }
 
 static GObject *
-- 
1.5.6.5




More information about the telepathy-commits mailing list