From 77173033efaa7c33d1badf446133c701e2ae890f Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 17 Jan 2014 16:28:58 +0100 Subject: base-client: fix TpConnection leak --- telepathy-glib/base-client.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/telepathy-glib/base-client.c b/telepathy-glib/base-client.c index bd33b3c97..dbe153f6f 100644 --- a/telepathy-glib/base-client.c +++ b/telepathy-glib/base-client.c @@ -2000,6 +2000,7 @@ _tp_base_client_observe_channels (TpSvcClientObserver *iface, out: g_clear_object (&account); + g_clear_object (&connection); if (channels != NULL) g_ptr_array_unref (channels); @@ -2173,6 +2174,7 @@ _tp_base_client_add_dispatch_operation (TpSvcClientApprover *iface, out: g_clear_object (&account); + g_clear_object (&connection); if (channels != NULL) g_ptr_array_unref (channels); @@ -2521,6 +2523,7 @@ _tp_base_client_handle_channels (TpSvcClientHandler *iface, out: g_clear_object (&account); + g_clear_object (&connection); if (channels != NULL) g_ptr_array_unref (channels); -- cgit v1.2.1