[Telepathy-commits] [telepathy-gabble/master] src/connection.c: Use g_value_array_free to free capabilities
Alban Crequy
alban.crequy at collabora.co.uk
Fri Dec 5 09:42:41 PST 2008
---
src/connection.c | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/connection.c b/src/connection.c
index 1a207d5..556c292 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2643,11 +2643,7 @@ gabble_connection_get_capabilities (TpSvcConnectionInterfaceCapabilities *iface,
for (i = 0; i < ret->len; i++)
{
- GValue monster = {0, };
-
- g_value_init (&monster, TP_STRUCT_TYPE_CONTACT_CAPABILITY);
- g_value_take_boxed (&monster, g_ptr_array_index (ret, i));
- g_value_unset (&monster);
+ g_value_array_free (g_ptr_array_index (ret, i));
}
g_ptr_array_free (ret, TRUE);
--
1.5.6.5
More information about the Telepathy-commits
mailing list