diff options
author | Michael Vetter <jubalh@iodoru.org> | 2019-06-19 12:30:57 +0200 |
---|---|---|
committer | Michael Vetter <jubalh@iodoru.org> | 2019-06-19 12:30:57 +0200 |
commit | 20e94beca29f47118c14e85af22d1d6290b97c41 (patch) | |
tree | 749e20d1ed28275d87559bc188f174a77f876d36 | |
parent | 110a2c7bb857904956104794b563e70640e873f4 (diff) | |
download | profani-tty-20e94beca29f47118c14e85af22d1d6290b97c41.tar.gz |
Free last_msg_timestamp
Fix memory leak.
-rw-r--r-- | src/ui/window_list.c | 4 |
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: |