# HG changeset patch # User John Bailey # Date 1250465292 0 # Node ID cd257777ac5d178051ae227a8c0801ffdc680b8a # Parent 4200554dd0fce30beb3df0bd8cc6301897a0bb0a Fix MSNP9 too. Same patch by Mark and Paul, just applied to MSNP9. diff -r 4200554dd0fc -r cd257777ac5d libpurple/protocols/msnp9/slplink.c --- 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) {