[Telepathy-commits] [telepathy-glib/master] TpContactsMixin: GetContactAttributes: when holding handles, don't leak sender's unique name

Simon McVittie simon.mcvittie at collabora.co.uk
Wed Mar 4 09:08:33 PST 2009


---
 telepathy-glib/contacts-mixin.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/contacts-mixin.c b/telepathy-glib/contacts-mixin.c
index 9f19046..4941895 100644
--- a/telepathy-glib/contacts-mixin.c
+++ b/telepathy-glib/contacts-mixin.c
@@ -317,7 +317,9 @@ tp_contacts_mixin_get_contact_attributes (
   if (hold)
     {
       gchar *sender = dbus_g_method_get_sender (context);
+
       tp_handles_client_hold (contact_repo, sender, valid_handles, NULL);
+      g_free (sender);
     }
 
   /* ensure the handles don't disappear while calling out to various functions
-- 
1.5.6.5




More information about the telepathy-commits mailing list