[next] telepathy-glib: TpConnection: Fix leaked result when preparing contact-list feature

Xavier Claessens xclaesse at kemper.freedesktop.org
Mon Jun 4 03:58:17 PDT 2012


Module: telepathy-glib
Branch: next
Commit: d426569b302164130ad97aa44c804c1347e70f74
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=d426569b302164130ad97aa44c804c1347e70f74

Author: Xavier Claessens <xavier.claessens at collabora.co.uk>
Date:   Fri Jun  1 17:26:59 2012 +0200

TpConnection: Fix leaked result when preparing contact-list feature

https://bugs.freedesktop.org/show_bug.cgi?id=49373

---

 telepathy-glib/connection-contact-list.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/telepathy-glib/connection-contact-list.c b/telepathy-glib/connection-contact-list.c
index 9969cd4..9e59af2 100644
--- a/telepathy-glib/connection-contact-list.c
+++ b/telepathy-glib/connection-contact-list.c
@@ -419,6 +419,7 @@ _tp_connection_prepare_contact_list_async (TpProxy *proxy,
   if (self->priv->contact_list_state == TP_CONTACT_LIST_STATE_SUCCESS)
     {
       prepare_roster (self, result);
+      g_object_unref (result);
       return;
     }
 



More information about the telepathy-commits mailing list