changeset 31218:b98d1ca8422d

This bits belong to SlpMessage, lets handle here, also I think it's easier to manage this bits being a pointer.
author masca@cpw.pidgin.im
date Tue, 08 Jun 2010 01:40:39 +0000
parents 23b7b1b817c8
children 74e372b31486
files libpurple/protocols/msn/slpmsg.c libpurple/protocols/msn/slpmsg.h
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msn/slpmsg.c	Sun Jun 06 21:27:12 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg.c	Tue Jun 08 01:40:39 2010 +0000
@@ -47,6 +47,9 @@
 	slplink->slp_msgs =
 		g_list_append(slplink->slp_msgs, slpmsg);
 
+	slpmsg->header = NULL;
+	slpmsg->footer = NULL;
+
 	return slpmsg;
 }
 
@@ -86,6 +89,9 @@
 
 	slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg);
 
+	g_free(slpmsg->header);
+	g_free(slpmsg->footer);
+
 	g_free(slpmsg);
 }
 
--- a/libpurple/protocols/msn/slpmsg.h	Sun Jun 06 21:27:12 2010 +0000
+++ b/libpurple/protocols/msn/slpmsg.h	Tue Jun 08 01:40:39 2010 +0000
@@ -45,6 +45,9 @@
 	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;