aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-vfolder.c
diff options
context:
space:
mode:
authorParthasarathi Susarla <sparthasarathi@novell.com>2006-02-20 14:54:12 +0800
committerParthasarathi Susarla <saps@src.gnome.org>2006-02-20 14:54:12 +0800
commit6d4d5b88716039113398e257be02501b4cd1f7fd (patch)
treeb189d76a28bed68612e987c9a46098d11d5479cf /mail/mail-vfolder.c
parent97e054a4dcb93f622a0db84ec76b280b6859c300 (diff)
downloadgsoc2013-evolution-6d4d5b88716039113398e257be02501b4cd1f7fd.tar.gz
gsoc2013-evolution-6d4d5b88716039113398e257be02501b4cd1f7fd.tar.zst
gsoc2013-evolution-6d4d5b88716039113398e257be02501b4cd1f7fd.zip
** Fixes bug 33139
2006-02-20 Parthasarathi Susarla <sparthasarathi@novell.com> ** Fixes bug 33139 * mail-vfolder.c: (mail_vfolder_shutdown): assign 'vfolder_hash' to NULL after destroying. Committed Patch on behalf of Joe Marcus Clarke (marcus@freebsd.org) svn path=/trunk/; revision=31544
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);