Check for m->cancel != NULL in mail_msg_cancel().

This commit is contained in:
Matthew Barnes
2010-09-21 09:34:25 -04:00
parent 1fd0976706
commit bbb5b172da

View File

@ -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);