[telepathy-gabble/master] vcard-manager.c: use the returned value of lm_message_node_ref
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Wed Jul 15 07:26:28 PDT 2009
---
src/vcard-manager.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/vcard-manager.c b/src/vcard-manager.c
index 78a84d1..0a5253c 100644
--- a/src/vcard-manager.c
+++ b/src/vcard-manager.c
@@ -1020,8 +1020,7 @@ manager_patch_vcard (GabbleVCardManager *manager,
/* We'll save the patched vcard, and if the server says
* we're ok, put it into the cache. But we want to leave the
* original vcard in the cache until that happens. */
- lm_message_node_ref (patched_vcard);
- priv->patched_vcard = patched_vcard;
+ priv->patched_vcard = lm_message_node_ref (patched_vcard);
priv->edit_pipeline_item = gabble_request_pipeline_enqueue (
priv->connection->req_pipeline, msg, 0, replace_reply_cb, manager);
@@ -1103,8 +1102,7 @@ pipeline_reply_cb (GabbleConnection *conn,
}
/* Put the message in the cache */
- lm_message_node_ref (vcard_node);
- entry->vcard_node = vcard_node;
+ entry->vcard_node = lm_message_node_ref (vcard_node);
entry->expires = time (NULL) + VCARD_CACHE_ENTRY_TTL;
tp_heap_add (priv->timed_cache, entry);
--
1.5.6.5
More information about the telepathy-commits
mailing list