From a2ab50c057cbe9baafa63372767c5022901838f6 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 8 Jul 2002 22:59:23 +0000 Subject: Don't ever use the mail-display's current_message, this can cause 2002-07-08 Jeffrey Stedfast * mail-callbacks.c (redirect): Don't ever use the mail-display's current_message, this can cause problems. * mail-ops.c (get_message_free): Unref the gotten message. All of the callers seemed to think that they didn't have to unref the message. * mail-display.c (mail_display_set_message): Now refs the message. (mail_display_destroy): Unref the current_message if we still have ownership of it. svn path=/trunk/; revision=17387 --- mail/mail-ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mail/mail-ops.h') diff --git a/mail/mail-ops.h b/mail/mail-ops.h index f471ea1c72..e509577bd6 100644 --- a/mail/mail-ops.h +++ b/mail/mail-ops.h @@ -52,7 +52,7 @@ void mail_transfer_messages (CamelFolder *source, GPtrArray *uids, /* get a single message, asynchronously */ void mail_get_message (CamelFolder *folder, const char *uid, - void (*done) (CamelFolder *folder, char *uid, CamelMimeMessage *msg, void *data), + void (*done) (CamelFolder *folder, const char *uid, CamelMimeMessage *msg, void *data), void *data, EThread *thread); -- cgit v1.2.3