aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-reader-utils.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-13 04:57:37 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-13 06:24:42 +0800
commit6ae1b3fe3c4dfd391de92bfca42e44ff7cc8fe19 (patch)
tree83baf88eed47f8934e3a4243d6a1112fffe7b660 /mail/e-mail-reader-utils.c
parent58a6db9875d58d1bc7458cd049304e82e113205a (diff)
downloadgsoc2013-evolution-6ae1b3fe3c4dfd391de92bfca42e44ff7cc8fe19.tar.gz
gsoc2013-evolution-6ae1b3fe3c4dfd391de92bfca42e44ff7cc8fe19.tar.zst
gsoc2013-evolution-6ae1b3fe3c4dfd391de92bfca42e44ff7cc8fe19.zip
em_utils_reply_to_message(): Require a CamelMimeMessage.
No more fetching a message itself. Oh, and stop unreffing the message. Those kinds of insane semantics are what lead to crashes.
Diffstat (limited to 'mail/e-mail-reader-utils.c')
-rw-r--r--mail/e-mail-reader-utils.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/mail/e-mail-reader-utils.c b/mail/e-mail-reader-utils.c
index 1da1a65084..6ed50b1742 100644
--- a/mail/e-mail-reader-utils.c
+++ b/mail/e-mail-reader-utils.c
@@ -612,16 +612,18 @@ e_mail_reader_reply_to_message (EMailReader *reader,
g_object_unref (src_message);
em_utils_reply_to_message (
- shell, folder, uid, new_message,
+ shell, new_message, folder, uid,
reply_type, reply_style, NULL);
+ g_object_unref (new_message);
+
g_free (selection);
return;
whole_message:
em_utils_reply_to_message (
- shell, folder, uid, src_message,
+ shell, src_message, folder, uid,
reply_type, reply_style, EM_FORMAT (formatter));
}