summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);