[telepathy-gabble-0.16] telepathy-gabble: Fix a leak in: tp_handles_unref() does not unref the array

Xavier Claessens xclaesse at kemper.freedesktop.org
Thu May 10 06:14:34 PDT 2012


Module: telepathy-gabble
Branch: telepathy-gabble-0.16
Commit: 7667bb74e99e236c15f34b7f9266073441d3afde
URL:    http://cgit.freedesktop.org/telepathy/telepathy-gabble/commit/?id=7667bb74e99e236c15f34b7f9266073441d3afde

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Thu May 10 15:11:56 2012 +0200

Fix a leak in: tp_handles_unref() does not unref the array

---

 src/conn-addressing.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/conn-addressing.c b/src/conn-addressing.c
index 79e7425..c02910e 100644
--- a/src/conn-addressing.c
+++ b/src/conn-addressing.c
@@ -105,6 +105,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);
@@ -145,6 +146,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);



More information about the telepathy-commits mailing list