pidgin.2.5.9: 0899f42c: Fix MSNP9 too.
rekkanoryo at pidgin.im
rekkanoryo at pidgin.im
Tue Aug 18 11:50:47 EDT 2009
-----------------------------------------------------------------
Revision: 0899f42c08f68d7811a5b0ebe68acd5b85eddc13
Ancestor: 6f7343166c673bf0496ecb1afec9b633c1d54a0e
Author: rekkanoryo at pidgin.im
Date: 2009-08-14T23:36:10
Branch: im.pidgin.pidgin.2.5.9
URL: http://d.pidgin.im/viewmtn/revision/info/0899f42c08f68d7811a5b0ebe68acd5b85eddc13
Modified files:
libpurple/protocols/msnp9/slplink.c
ChangeLog:
Fix MSNP9 too.
-------------- next part --------------
============================================================
--- libpurple/protocols/msnp9/slplink.c 2f6ed0b563df31ac3217180cc8c94efe03f3d1e3
+++ libpurple/protocols/msnp9/slplink.c 119b5d7b2d5b033926f4d4a143ba7f167addfcc1
@@ -477,6 +477,7 @@ msn_slplink_send_ack(MsnSlpLink *slplink
#endif
msn_slplink_send_slpmsg(slplink, slpmsg);
+ msn_slpmsg_destroy(slpmsg);
}
static void
@@ -602,7 +603,7 @@ msn_slplink_process_msg(MsnSlpLink *slpl
/* 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)
{
More information about the Commits
mailing list