diff options
author | Not Zed <NotZed@Ximian.com> | 2001-07-24 09:36:11 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-07-24 09:36:11 +0800 |
commit | cb4926026f1f05ffd44af0a9ab51c01f1bfdf21c (patch) | |
tree | 20d3b2b8e1c69147dda487a237e80e07e7158bda /mail/mail-mt.c | |
parent | 8dd7c75d2940282ec0bb41338e2ea24f5b799c98 (diff) | |
download | gsoc2013-evolution-cb4926026f1f05ffd44af0a9ab51c01f1bfdf21c.tar.gz gsoc2013-evolution-cb4926026f1f05ffd44af0a9ab51c01f1bfdf21c.tar.zst gsoc2013-evolution-cb4926026f1f05ffd44af0a9ab51c01f1bfdf21c.zip |
Go back to calling mail_msg_free here. (mail_msg_destroy): Remove the
2001-07-23 Not Zed <NotZed@Ximian.com>
* mail-mt.c (mail_msgport_replied): Go back to calling
mail_msg_free here.
(mail_msg_destroy): Remove the operation unregistration stuff.
(mail_msg_received): And put it here, so we unregister as soon as
the async part of the operation is complete. I thought about this
and we should be doing this anyway so we register/unregister
always in the same thread, although the camel_operation api
doesn't enforce it, this *is* what it expects.
* message-list.c (regen_list_regen): re-add reporting to
rebuilding the message list. Basically fixes #4931
svn path=/trunk/; revision=11332
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) |