From 37c200571ff5e6c7e5a09ee3e6cafb4c4055ed31 Mon Sep 17 00:00:00 2001 From: Dmitry Podgorny Date: Fri, 3 Apr 2020 01:47:38 +0300 Subject: [PATCH] Fixed memory leak in ProfMucWin Profanity remembers last message and its id for the message correction feature. We must free them in window destructor. --- src/ui/window.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ui/window.c b/src/ui/window.c index 7c093480..fdf5d3f9 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -519,6 +519,8 @@ win_free(ProfWin* window) free(mucwin->room_name); free(mucwin->enctext); free(mucwin->message_char); + free(mucwin->last_message); + free(mucwin->last_msg_id); break; } case WIN_CONFIG: