summaryrefslogtreecommitdiff
path: root/telepathy-glib/simple-password-manager.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-02 14:48:53 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-02 14:48:53 +0000
commit59ec4587117c46da12178bbedb6ea32aeb154840 (patch)
tree5fe34ed3cae1309e001aa0a624f1120ed89cc3af /telepathy-glib/simple-password-manager.c
parent55d3088c7641a3653ccb6be0993eaa10bf17718d (diff)
downloadtelepathy-glib-59ec4587117c46da12178bbedb6ea32aeb154840.tar.gz
simple-password-manager: don't unref the channel after setting it to NULL
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
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