diff libpurple/protocols/msn/msg.c @ 23011:ba47ec8a2477

When adding outgoing MSN commands to the MsnHistory, free MsnTransaction->payload to save memory. MSN_HIST_ELEMS * MSN_BUF_LEN (used in msn_message_gen_payload) = 48 * 8192 bytes = 384 KB per online MSN account = a lot of wasted memory
author Mark Doliner <mark@kingant.net>
date Tue, 20 May 2008 20:59:21 +0000
parents c8f99cb61dc9
children 56d958e7b7d1
line wrap: on
line diff
--- a/libpurple/protocols/msn/msg.c	Tue May 20 19:49:26 2008 +0000
+++ b/libpurple/protocols/msn/msg.c	Tue May 20 20:59:21 2008 +0000
@@ -151,6 +151,7 @@
 	MsnMessage *msg;
 
 	msg = msn_message_new(MSN_MSG_NUDGE);
+	/* TODO: This shouldn't have a \r\n in it, should it?? */
 	msn_message_set_content_type(msg, "text/x-msnmsgr-datacast\r\n");
 	msn_message_set_flag(msg, 'N');
 	msn_message_set_attr(msg,"ID","1\r\n");