diff options
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r-- | mail/mail-mt.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c index da004630f7..7dc47a37bc 100644 --- a/mail/mail-mt.c +++ b/mail/mail-mt.c @@ -259,7 +259,7 @@ mail_msgport_replied(GIOChannel *source, GIOCondition cond, void *d) if (m->ops->reply_msg) m->ops->reply_msg(m); mail_msg_check_error(m); - mail_msg_destroy(NULL, m, NULL); + mail_msg_free(m); } return TRUE; @@ -303,11 +303,6 @@ mail_msg_destroy(EThread *e, EMsg *msg, void *data) checkmem(m->priv); #endif - if (m->ops->describe_msg) { - camel_operation_end(m->cancel); - camel_operation_unregister(m->cancel); - } - mail_msg_free(m); } @@ -336,6 +331,11 @@ mail_msg_received(EThread *e, EMsg *msg, void *data) m->ops->receive_msg(m); mail_disable_stop(); } + + if (m->ops->describe_msg) { + camel_operation_end(m->cancel); + camel_operation_unregister(m->cancel); + } } static void mail_msg_cleanup(void) |