summaryrefslogtreecommitdiff
path: root/telepathy-glib/simple-password-manager.c
diff options
context:
space:
mode:
Diffstat (limited to 'telepathy-glib/simple-password-manager.c')
-rw-r--r--telepathy-glib/simple-password-manager.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/telepathy-glib/simple-password-manager.c b/telepathy-glib/simple-password-manager.c
index 6f50f0739..aa8983d0e 100644
--- a/telepathy-glib/simple-password-manager.c
+++ b/telepathy-glib/simple-password-manager.c
@@ -211,8 +211,9 @@ tp_simple_password_manager_close_all (TpSimplePasswordManager *self)
DEBUG ("closing %p", priv->channel);
tp_base_channel_close (TP_BASE_CHANNEL (priv->channel));
- g_object_unref (priv->channel);
- priv->channel = NULL;
+
+ /* priv->channel gets unreffed and set to NULL in the closed
+ * callback below. */
}
static void