changeset 28288:cd257777ac5d

Fix MSNP9 too. Same patch by Mark and Paul, just applied to MSNP9.
author John Bailey <rekkanoryo@rekkanoryo.org>
date Sun, 16 Aug 2009 23:28:12 +0000
parents 4200554dd0fc
children db99cde1845c
files libpurple/protocols/msnp9/slplink.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/slplink.c	Sun Aug 16 23:27:24 2009 +0000
+++ b/libpurple/protocols/msnp9/slplink.c	Sun Aug 16 23:28:12 2009 +0000
@@ -477,6 +477,7 @@
 #endif
 
 	msn_slplink_send_slpmsg(slplink, slpmsg);
+	msn_slpmsg_destroy(slpmsg);
 }
 
 static void
@@ -603,7 +604,7 @@
 		/* fseek(slpmsg->fp, offset, SEEK_SET); */
 		len = fwrite(data, 1, len, slpmsg->fp);
 	}
-	else if (slpmsg->size)
+	else if (slpmsg->size && slpmsg->buffer)
 	{
 		if (G_MAXSIZE - len < offset || (offset + len) > slpmsg->size)
 		{