From 04cef4a94f2032f820779ed869111a24ddbfbd1a Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Thu, 30 May 2002 20:28:12 +0000 Subject: Protect against NULL stores. Fixes bug #25456. 2002-05-30 Jeffrey Stedfast * component-factory.c (store_disconnect): Protect against NULL stores. Fixes bug #25456. svn path=/trunk/; revision=17048 --- mail/ChangeLog | 3 +++ mail/component-factory.c | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'mail') 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 + * 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 -- cgit v1.2.3