aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r--mail/mail-vfolder.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c
index b258355c57..66b29de918 100644
--- a/mail/mail-vfolder.c
+++ b/mail/mail-vfolder.c
@@ -1189,9 +1189,11 @@ mail_vfolder_shutdown (void)
{
shutdown = 1;
- g_hash_table_foreach (vfolder_hash, vfolder_foreach_cb, NULL);
- g_hash_table_destroy (vfolder_hash);
- vfolder_hash = NULL;
+ if (vfolder_hash) {
+ g_hash_table_foreach (vfolder_hash, vfolder_foreach_cb, NULL);
+ g_hash_table_destroy (vfolder_hash);
+ vfolder_hash = NULL;
+ }
if (vfolder_store) {
camel_object_unref (vfolder_store);