[Telepathy-commits] [telepathy-gabble/master] src/connection.c: Use g_value_array_free to free enhanced 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 556c292..929b754 100644
--- a/src/connection.c
+++ b/src/connection.c
@@ -2186,11 +2186,7 @@ gabble_free_enhanced_contact_capabilities (GPtrArray *caps)
for (i = 0; i < caps->len; i++)
{
- GValue monster = {0, };
-
- g_value_init (&monster, GABBLE_STRUCT_TYPE_ENHANCED_CONTACT_CAPABILITY);
- g_value_take_boxed (&monster, g_ptr_array_index (caps, i));
- g_value_unset (&monster);
+ g_value_array_free (g_ptr_array_index (caps, i));
}
g_ptr_array_free (caps, TRUE);
--
1.5.6.5
More information about the Telepathy-commits
mailing list