Mercurial > pidgin
diff libpurple/protocols/msnp9/slpcall.c @ 23669:7eeb81cbbcae
take an extra reference to PurpleXfer so we can check whether the whole
thing went away. I haven't tested this because it's late, but it shouldn't
break things or at least shouldn't make things worse.
(Michal Marek tested this and said it works, so I am porting this to msnp9 too)
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Thu, 07 Aug 2008 19:47:23 +0000 |
parents | c38d72677c8a |
children | 7f552614ec8a |
line wrap: on
line diff
--- a/libpurple/protocols/msnp9/slpcall.c Thu Aug 07 19:36:12 2008 +0000 +++ b/libpurple/protocols/msnp9/slpcall.c Thu Aug 07 19:47:23 2008 +0000 @@ -120,8 +120,10 @@ if (slpcall->end_cb != NULL) slpcall->end_cb(slpcall, session); - if (slpcall->xfer != NULL) + if (slpcall->xfer != NULL) { + slpcall->xfer->data = NULL; purple_xfer_unref(slpcall->xfer); + } g_free(slpcall); }