summaryrefslogtreecommitdiff
path: root/telepathy-glib/text-mixin.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/text-mixin.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/text-mixin.c')
-rw-r--r--telepathy-glib/text-mixin.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/telepathy-glib/text-mixin.c b/telepathy-glib/text-mixin.c
index 14a2f221f..cd0980a32 100644
--- a/telepathy-glib/text-mixin.c
+++ b/telepathy-glib/text-mixin.c
@@ -294,8 +294,7 @@ tp_text_mixin_receive_with_flags (GObject *obj,
size_t len;
msg = _pending_new0 ();
- tp_handle_ref (mixin->priv->contacts_repo, sender);
- msg->sender = sender;
+ msg->sender = tp_handle_ref (mixin->priv->contacts_repo, sender);
/* FIXME: we don't check for overflow, so in highly pathological cases we
* might end up with multiple messages with the same ID */
msg->id = mixin->priv->recv_id++;