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:
parent
ade0ff589d
commit
5db840e0cc
@ -1404,6 +1404,7 @@ win_print_outgoing_with_receipt(ProfWin* window, const char* show_char, const ch
|
|||||||
const char* myjid = connection_get_fulljid();
|
const char* myjid = connection_get_fulljid();
|
||||||
if (replace_id) {
|
if (replace_id) {
|
||||||
_win_correct(window, message, id, replace_id, myjid);
|
_win_correct(window, message, id, replace_id, myjid);
|
||||||
|
free(receipt); //TODO: probably we should use this in _win_correct()
|
||||||
} else {
|
} else {
|
||||||
buffer_append(window->layout->buffer, show_char, 0, time, 0, THEME_TEXT_ME, from, myjid, message, receipt, id);
|
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);
|
_win_print_internal(window, show_char, 0, time, 0, THEME_TEXT_ME, from, message, receipt);
|
||||||
|
Loading…
Reference in New Issue
Block a user