From 5db840e0cc35070b9219c166d496a03f44dc6ea8 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Thu, 23 Jul 2020 10:06:49 +0200 Subject: 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 --- src/ui/window.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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); -- cgit 1.4.1-2-gfad0