summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-connection.c
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-11-04 18:32:45 +0000
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-11-15 16:50:44 +0000
commit7d15b1d218256edbb79aa5569cd82d7b6921f413 (patch)
tree3936601e30152167f4016a9f8317b683032cf8d2 /telepathy-glib/base-connection.c
parent445b69e49022b9f42af4a76cf2c84e2e01697512 (diff)
downloadtelepathy-glib-7d15b1d218256edbb79aa5569cd82d7b6921f413.tar.gz
use tp_handle_ref's new return type around source
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/base-connection.c')
-rw-r--r--telepathy-glib/base-connection.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/telepathy-glib/base-connection.c b/telepathy-glib/base-connection.c
index 39c042595..86c795377 100644
--- a/telepathy-glib/base-connection.c
+++ b/telepathy-glib/base-connection.c
@@ -508,11 +508,11 @@ tp_base_connection_set_property (GObject *object,
tp_handle_unref (priv->handles[TP_HANDLE_TYPE_CONTACT],
self->self_handle);
- self->self_handle = new_self_handle;
+ self->self_handle = 0;
- if (self->self_handle != 0)
- tp_handle_ref (priv->handles[TP_HANDLE_TYPE_CONTACT],
- self->self_handle);
+ if (new_self_handle != 0)
+ self->self_handle = tp_handle_ref (priv->handles[TP_HANDLE_TYPE_CONTACT],
+ new_self_handle);
tp_svc_connection_emit_self_handle_changed (self, self->self_handle);
}