about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
authorDmitry Podgorny <pasis.ua@gmail.com>2020-04-03 01:47:38 +0300
committerDmitry Podgorny <pasis.ua@gmail.com>2020-04-03 01:47:38 +0300
commit37c200571ff5e6c7e5a09ee3e6cafb4c4055ed31 (patch)
tree99f03fa3b30155b51559622e5a06362279a23982 /src/ui
parent15e05d1706cc3cdc3d637e25ed83f6acbd26b59e (diff)
downloadprofani-tty-37c200571ff5e6c7e5a09ee3e6cafb4c4055ed31.tar.gz
Fixed memory leak in ProfMucWin
Profanity remembers last message and its id for the message correction
feature. We must free them in window destructor.
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/window.c2
1 files changed, 2 insertions, 0 deletions
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: