[telepathy-glib-0.22] telepathy-glib: base-client: fix TpConnection leak
Guillaume Desmottes
gdesmott at kemper.freedesktop.org
Mon Jan 20 05:45:23 PST 2014
Module: telepathy-glib
Branch: telepathy-glib-0.22
Commit: 77173033efaa7c33d1badf446133c701e2ae890f
URL: http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=77173033efaa7c33d1badf446133c701e2ae890f
Author: Guillaume Desmottes <guillaume.desmottes at collabora.co.uk>
Date: Fri Jan 17 16:28:58 2014 +0100
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 bd33b3c..dbe153f 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);
More information about the telepathy-commits
mailing list