diff options
author | Milan Crha <mcrha@redhat.com> | 2012-07-21 00:13:49 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-07-21 00:14:38 +0800 |
commit | 84025c02ebe79b8477be528e37d48546b5370651 (patch) | |
tree | f6941ed9ee97ec73c4575d874d64c7439c3593c3 /mail/message-list.c | |
parent | 6edec8cefcffc5d46c63a0e0fa70be1fb4ed2926 (diff) | |
download | gsoc2013-evolution-84025c02ebe79b8477be528e37d48546b5370651.tar.gz gsoc2013-evolution-84025c02ebe79b8477be528e37d48546b5370651.tar.zst gsoc2013-evolution-84025c02ebe79b8477be528e37d48546b5370651.zip |
Fix few more memory leaks
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 997e38d12a..7cce5f9899 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -3908,6 +3908,10 @@ message_list_set_folder (MessageList *message_list, if (message_list->folder) { g_signal_handlers_disconnect_by_func ( message_list->folder, folder_changed, message_list); + + if (message_list->uid_nodemap) + g_hash_table_foreach (message_list->uid_nodemap, (GHFunc) clear_info, message_list); + g_object_unref (message_list->folder); message_list->folder = NULL; } |