From 20e94beca29f47118c14e85af22d1d6290b97c41 Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Wed, 19 Jun 2019 12:30:57 +0200 Subject: Free last_msg_timestamp Fix memory leak. --- src/ui/window_list.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ui/window_list.c b/src/ui/window_list.c index 6e2f82dd..d8c8a0ae 100644 --- a/src/ui/window_list.c +++ b/src/ui/window_list.c @@ -562,6 +562,10 @@ wins_close_by_num(int i) autocomplete_remove(wins_ac, mucwin->roomjid); autocomplete_remove(wins_close_ac, mucwin->roomjid); g_hash_table_remove_all(mucwin->sent_messages); + + if (mucwin->last_msg_timestamp) { + g_date_time_unref(mucwin->last_msg_timestamp); + } break; } case WIN_PRIVATE: -- cgit 1.4.1-2-gfad0