[empathy: 14/19] empathy_message_new_from_tp_message: assign priv as soon as the message is created



commit 52d369333daea849d6119f4aee80007d9c659652
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date:   Tue Apr 19 09:52:54 2011 +0200

    empathy_message_new_from_tp_message: assign priv as soon as the message is created

 libempathy/empathy-message.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libempathy/empathy-message.c b/libempathy/empathy-message.c
index 1740e1d..ad3a32c 100644
--- a/libempathy/empathy-message.c
+++ b/libempathy/empathy-message.c
@@ -638,12 +638,13 @@ empathy_message_new_from_tp_message (TpMessage *tp_msg,
 		"incoming", incoming,
 		NULL);
 
+	priv = GET_PRIV (message);
+
 	/* FIXME: this is pretty low level, ideally we shouldn't have to use the
 	 * ID directly but we don't use TpTextChannel's ack API everywhere yet. */
 	id = tp_asv_get_uint32 (tp_message_peek (tp_msg, 0),
 		"pending-message-id", NULL);
 
-	priv = GET_PRIV (message);
 	priv->id = id;
 
 	g_free (body);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]