diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-02 14:48:53 +0000 |
---|---|---|
committer | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-02 14:48:53 +0000 |
commit | 59ec4587117c46da12178bbedb6ea32aeb154840 (patch) | |
tree | 5fe34ed3cae1309e001aa0a624f1120ed89cc3af /telepathy-glib | |
parent | 55d3088c7641a3653ccb6be0993eaa10bf17718d (diff) | |
download | telepathy-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')
-rw-r--r-- | telepathy-glib/simple-password-manager.c | 5 |
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 |