about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ui/window_list.c4
1 files changed, 4 insertions, 0 deletions
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: