From bbb5b172dab0d9ba85cd48670ece04733b28c758 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 21 Sep 2010 09:34:25 -0400 Subject: Check for m->cancel != NULL in mail_msg_cancel(). --- mail/mail-mt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-mt.c') diff --git a/mail/mail-mt.c b/mail/mail-mt.c index 595cedf776..e17d3c2daf 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -303,7 +303,7 @@ void mail_msg_cancel (guint msgid) m = g_hash_table_lookup (mail_msg_active_table, GINT_TO_POINTER (msgid)); - if (m != NULL && !camel_operation_cancel_check (m->cancel)) + if (m != NULL && m->cancel != NULL && !camel_operation_cancel_check (m->cancel)) camel_operation_cancel (m->cancel); g_mutex_unlock (mail_msg_lock); -- cgit v1.2.3