aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-mt.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/mail-mt.c')
-rw-r--r--mail/mail-mt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/mail-mt.c b/mail/mail-mt.c
index 18a5c34723..da004630f7 100644
--- a/mail/mail-mt.c
+++ b/mail/mail-mt.c
@@ -60,6 +60,8 @@ static pthread_cond_t mail_msg_cond = PTHREAD_COND_INITIALIZER;
pthread_t mail_gui_thread;
+static void mail_msg_destroy(EThread *e, EMsg *msg, void *data);
+
void *mail_msg_new(mail_msg_op_t *ops, EMsgPort *reply_port, size_t size)
{
struct _mail_msg *msg;
@@ -257,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(m);
+ mail_msg_destroy(NULL, m, NULL);
}
return TRUE;