comparison libpurple/protocols/msn/slpmsg.c @ 30780: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 230caecf5435
children 74e372b31486
comparison
equal deleted inserted replaced
30779:23b7b1b817c8 30780:b98d1ca8422d
44 44
45 slpmsg->slplink = slplink; 45 slpmsg->slplink = slplink;
46 46
47 slplink->slp_msgs = 47 slplink->slp_msgs =
48 g_list_append(slplink->slp_msgs, slpmsg); 48 g_list_append(slplink->slp_msgs, slpmsg);
49
50 slpmsg->header = NULL;
51 slpmsg->footer = NULL;
49 52
50 return slpmsg; 53 return slpmsg;
51 } 54 }
52 55
53 void 56 void
83 msg->ack_data = NULL; 86 msg->ack_data = NULL;
84 msn_message_unref(msg); 87 msn_message_unref(msg);
85 } 88 }
86 89
87 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg); 90 slplink->slp_msgs = g_list_remove(slplink->slp_msgs, slpmsg);
91
92 g_free(slpmsg->header);
93 g_free(slpmsg->footer);
88 94
89 g_free(slpmsg); 95 g_free(slpmsg);
90 } 96 }
91 97
92 void 98 void