From 5c45e184a45679817e123abb6efcf937d6f50cdc Mon Sep 17 00:00:00 2001 From: Not Zed Date: Tue, 6 Aug 2002 03:55:12 +0000 Subject: Check driver != NULL, if folder_filter freed it already. 2002-08-06 Not Zed * mail-ops.c (fetch_mail_fetch): Check driver != NULL, if folder_filter freed it already. svn path=/trunk/; revision=17705 --- mail/mail-ops.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mail/mail-ops.c') diff --git a/mail/mail-ops.c b/mail/mail-ops.c index 38225769b7..b4d3788ed5 100644 --- a/mail/mail-ops.c +++ b/mail/mail-ops.c @@ -367,8 +367,10 @@ fetch_mail_fetch (struct _mail_msg *mm) /* we unref this here as it may have more work to do (syncing folders and whatnot) before we are really done */ /* should this be cancellable too? (i.e. above unregister above) */ - camel_object_unref (CAMEL_OBJECT (fm->driver)); - fm->driver = NULL; + if (fm->driver) { + camel_object_unref (CAMEL_OBJECT (fm->driver)); + fm->driver = NULL; + } } static void -- cgit