summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-01-17 16:28:58 +0100
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2014-01-20 14:45:16 +0100
commit77173033efaa7c33d1badf446133c701e2ae890f (patch)
tree4319fd01589a3ffbe2f403cfefab9634f7293062
parent1b28e0ca43acec40f708d480e2824743561c5b97 (diff)
downloadtelepathy-glib-77173033efaa7c33d1badf446133c701e2ae890f.tar.gz
base-client: fix TpConnection leak
-rw-r--r--telepathy-glib/base-client.c3
1 files changed, 3 insertions, 0 deletions
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);