summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-10 15:11:56 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-10 15:12:25 +0200
commit591ee25d44a016b38067d1f9a8772dca0fbca09c (patch)
treeb7c17aa0b8e7099c020c845de5055cfb8fc2195e
parentdf5e6d51ff66b5e84efdb1a1dfb28e584c2d5f3e (diff)
Fix a leak in: tp_handles_unref() does not unref the array
-rw-r--r--src/conn-addressing.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conn-addressing.c b/src/conn-addressing.c
index 6842ae008..3edbac812 100644
--- a/src/conn-addressing.c
+++ b/src/conn-addressing.c
@@ -103,6 +103,7 @@ conn_addressing_get_contacts_by_uri (GabbleSvcConnectionInterfaceAddressing *ifa
context, requested, attributes);
tp_handles_unref (contact_repo, handles);
+ g_array_unref (handles);
g_hash_table_unref (requested);
g_hash_table_unref (attributes);
g_free (sender);
@@ -143,6 +144,7 @@ conn_addressing_get_contacts_by_vcard_field (GabbleSvcConnectionInterfaceAddress
context, requested, attributes);
tp_handles_unref (contact_repo, handles);
+ g_array_unref (handles);
g_hash_table_unref (requested);
g_hash_table_unref (attributes);
g_free (sender);