soc.2010.msn-tlc: ece60cf5: This bits belong to SlpMessage, lets han...
masca at cpw.pidgin.im
masca at cpw.pidgin.im
Tue Jun 8 18:25:47 EDT 2010
-----------------------------------------------------------------
Revision: ece60cf5e8864f651e02e8b50350ca5c6cd659ca
Ancestor: 66e4c81623fbd6e1e033be30c81eb6f8e0cfb29a
Author: masca at cpw.pidgin.im
Date: 2010-06-08T01:40:39
Branch: im.pidgin.soc.2010.msn-tlc
URL: http://d.pidgin.im/viewmtn/revision/info/ece60cf5e8864f651e02e8b50350ca5c6cd659ca
Modified files:
libpurple/protocols/msn/slpmsg.c
libpurple/protocols/msn/slpmsg.h
ChangeLog:
This bits belong to SlpMessage, lets handle here, also I think it's easier to manage this bits being a pointer.
-------------- next part --------------
============================================================
--- libpurple/protocols/msn/slpmsg.c 24176b26442035aeb6b30b85bba08b09ccce060e
+++ libpurple/protocols/msn/slpmsg.c 95fa4210f3a853ca9229a205cf3dcd909ed61c8e
@@ -47,6 +47,9 @@ msn_slpmsg_new(MsnSlpLink *slplink)
slplink->slp_msgs =
g_list_append(slplink->slp_msgs, slpmsg);
+ slpmsg->header = NULL;
+ slpmsg->footer = NULL;
+
return slpmsg;
}
@@ -86,6 +89,9 @@ msn_slpmsg_destroy(MsnSlpMessage *slpmsg
slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg);
+ g_free(slpmsg->header);
+ g_free(slpmsg->footer);
+
g_free(slpmsg);
}
============================================================
--- libpurple/protocols/msn/slpmsg.h 279a011d89a98b0c85a8c37eeae1f11e6dc2ce10
+++ libpurple/protocols/msn/slpmsg.h 13a2040810f261b2d1aa93fab3941c23f9997db2
@@ -45,6 +45,9 @@ struct _MsnSlpMessage
MsnSlpLink *slplink; /**< The slplink through which this slp message is being sent. */
MsnSession *session;
+ MsnP2PHeader *header;
+ MsnP2PFooter *footer;
+
long session_id;
long id;
long ack_id;
More information about the Commits
mailing list