mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Free last_msg_timestamp
Fix memory leak.
This commit is contained in:
parent
110a2c7bb8
commit
20e94beca2
@ -562,6 +562,10 @@ wins_close_by_num(int i)
|
|||||||
autocomplete_remove(wins_ac, mucwin->roomjid);
|
autocomplete_remove(wins_ac, mucwin->roomjid);
|
||||||
autocomplete_remove(wins_close_ac, mucwin->roomjid);
|
autocomplete_remove(wins_close_ac, mucwin->roomjid);
|
||||||
g_hash_table_remove_all(mucwin->sent_messages);
|
g_hash_table_remove_all(mucwin->sent_messages);
|
||||||
|
|
||||||
|
if (mucwin->last_msg_timestamp) {
|
||||||
|
g_date_time_unref(mucwin->last_msg_timestamp);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case WIN_PRIVATE:
|
case WIN_PRIVATE:
|
||||||
|
Loading…
Reference in New Issue
Block a user