diff options
author | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-04-03 01:47:38 +0300 |
---|---|---|
committer | Dmitry Podgorny <pasis.ua@gmail.com> | 2020-04-03 01:47:38 +0300 |
commit | 37c200571ff5e6c7e5a09ee3e6cafb4c4055ed31 (patch) | |
tree | 99f03fa3b30155b51559622e5a06362279a23982 /src/ui | |
parent | 15e05d1706cc3cdc3d637e25ed83f6acbd26b59e (diff) | |
download | profani-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.c | 2 |
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: |