From 6d4d5b88716039113398e257be02501b4cd1f7fd Mon Sep 17 00:00:00 2001 From: Parthasarathi Susarla Date: Mon, 20 Feb 2006 06:54:12 +0000 Subject: ** Fixes bug 33139 2006-02-20 Parthasarathi Susarla ** 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 --- mail/ChangeLog | 9 +++++++++ mail/mail-vfolder.c | 8 +++++--- 2 files changed, 14 insertions(+), 3 deletions(-) (limited to 'mail') diff --git a/mail/ChangeLog b/mail/ChangeLog index b419c5ffef..5ece1f8e2c 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,3 +1,12 @@ +2006-02-20 Parthasarathi Susarla + + ** 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) + 2006-02-16 Srinivasa Ragavan ** Fixes bug #331215 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); -- cgit