1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-02-02 15:08:15 -05:00

Fix memleak in win_print_outgoing_with_receipt()

We should actually process the receipts also in LMC I think.

Regards https://github.com/profanity-im/profanity/issues/805
This commit is contained in:
Michael Vetter 2020-07-23 10:06:49 +02:00
parent ade0ff589d
commit 5db840e0cc

View File

@ -1404,6 +1404,7 @@ win_print_outgoing_with_receipt(ProfWin* window, const char* show_char, const ch
const char* myjid = connection_get_fulljid();
if (replace_id) {
_win_correct(window, message, id, replace_id, myjid);
free(receipt); //TODO: probably we should use this in _win_correct()
} else {
buffer_append(window->layout->buffer, show_char, 0, time, 0, THEME_TEXT_ME, from, myjid, message, receipt, id);
_win_print_internal(window, show_char, 0, time, 0, THEME_TEXT_ME, from, message, receipt);