diff options
author | Michael Vetter <jubalh@iodoru.org> | 2020-07-23 10:06:49 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2020-07-23 10:06:49 +0200 |
commit | 5db840e0cc35070b9219c166d496a03f44dc6ea8 (patch) | |
tree | aee40f686dbfdb423f8d1afd14cf0b32e1f3c8e1 /src | |
parent | ade0ff589d145b494d0e211645ea00332371d9aa (diff) | |
download | profani-tty-5db840e0cc35070b9219c166d496a03f44dc6ea8.tar.gz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/window.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ui/window.c b/src/ui/window.c index 33651866..06194012 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -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); |