Call prpl's status_text implementation to get presence_in message.
[thrasher.git] / libpurple-patches / 01-do_transfer_eagain_leak.patch
blob4290982093d912c78867404b48415fcb49a3c7ca
1 pidgin/libpurple/ft.c: do_transfer leaked entire current_buffer_size on EAGAIN.
3 diff a/pidgin/libpurple/ft.c b/pidgin/libpurple/ft.c
4 --- a/pidgin/libpurple/ft.c
5 +++ b/pidgin/libpurple/ft.c
6 @@ -1093,6 +1093,10 @@ do_transfer(PurpleXfer *xfer)
7 ui_ops->update_progress(xfer,
8 purple_xfer_get_progress(xfer));
10 + else if (buffer && r == 0)
11 + {
12 + g_free(buffer);
13 + }
15 if (purple_xfer_is_completed(xfer))
16 purple_xfer_end(xfer);