aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-05-31 04:28:12 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-05-31 04:28:12 +0800
commit04cef4a94f2032f820779ed869111a24ddbfbd1a (patch)
treeaa73d5743f164ed2b15140ef01c28b163c11f576 /mail
parent364b63a5e7fb988a42a808030dd565d4cb51c06c (diff)
downloadgsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar.gz
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar.bz2
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar.lz
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar.xz
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.tar.zst
gsoc2013-evolution-04cef4a94f2032f820779ed869111a24ddbfbd1a.zip
Protect against NULL stores. Fixes bug #25456.
2002-05-30 Jeffrey Stedfast <fejj@ximian.com> * component-factory.c (store_disconnect): Protect against NULL stores. Fixes bug #25456. svn path=/trunk/; revision=17048
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog3
-rw-r--r--mail/component-factory.c6
2 files changed, 7 insertions, 2 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index a2b7b754d6..f0362f2923 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,5 +1,8 @@
2002-05-30 Jeffrey Stedfast <fejj@ximian.com>
+ * component-factory.c (store_disconnect): Protect against NULL
+ stores. Fixes bug #25456.
+
* mail-callbacks.c (view_msg): Oops, create a message-browser
window here, not a folder-browser-window window.
diff --git a/mail/component-factory.c b/mail/component-factory.c
index 8f6a8b9565..07f39faca5 100644
--- a/mail/component-factory.c
+++ b/mail/component-factory.c
@@ -1382,8 +1382,10 @@ mail_lookup_storage (CamelStore *store)
static void
store_disconnect(CamelStore *store, void *event_data, void *data)
{
- camel_service_disconnect (CAMEL_SERVICE (store), TRUE, NULL);
- camel_object_unref (CAMEL_OBJECT (store));
+ if (store) {
+ camel_service_disconnect (CAMEL_SERVICE (store), TRUE, NULL);
+ camel_object_unref (CAMEL_OBJECT (store));
+ }
}
void