diff options
author | Milan Crha <mcrha@redhat.com> | 2012-06-28 02:17:28 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-06-28 02:17:28 +0800 |
commit | e5eb699ce36f57891cbe255a8f4054ab6fc6acbd (patch) | |
tree | 97626e7202a38ecb8dfdcffd069ac59ab5eaa227 /mail | |
parent | 9cdae1a4cc9b5c0879c61eeee351036540fc473c (diff) | |
download | gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar.gz gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar.bz2 gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar.lz gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar.xz gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.tar.zst gsoc2013-evolution-e5eb699ce36f57891cbe255a8f4054ab6fc6acbd.zip |
Fix few memory leaks
Diffstat (limited to 'mail')
-rw-r--r-- | mail/message-list.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 850ef07037..849fae8ef9 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -2665,15 +2665,16 @@ message_list_dispose (GObject *object) priv->destroyed = TRUE; - if (message_list->folder) { + if (message_list->folder) mail_regen_cancel (message_list); - if (message_list->uid_nodemap) { - g_hash_table_foreach (message_list->uid_nodemap, (GHFunc) clear_info, message_list); - g_hash_table_destroy (message_list->uid_nodemap); - message_list->uid_nodemap = NULL; - } + if (message_list->uid_nodemap) { + g_hash_table_foreach (message_list->uid_nodemap, (GHFunc) clear_info, message_list); + g_hash_table_destroy (message_list->uid_nodemap); + message_list->uid_nodemap = NULL; + } + if (message_list->folder) { g_signal_handlers_disconnect_by_func ( message_list->folder, folder_changed, message_list); g_object_unref (message_list->folder); |