Mercurial > pidgin
diff libpurple/protocols/msnp9/slplink.c @ 27940: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 | 6adbdd4b2963 |
children |
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) {