aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-03-01 22:53:15 +0800
committerMilan Crha <mcrha@redhat.com>2011-03-01 22:53:15 +0800
commit29cc2891d8bc37e76dbd103f0dea953d4191e2b6 (patch)
treed4300413482173091d2d2bc68b76d17986a6fd7b
parent7cd21fa82a975cc5bbd640869bf77a62c7b30f0a (diff)
downloadgsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar.gz
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar.bz2
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar.lz
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar.xz
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.tar.zst
gsoc2013-evolution-29cc2891d8bc37e76dbd103f0dea953d4191e2b6.zip
Bug #642093 - Frees message attachment content on Reply
-rw-r--r--modules/mail/e-mail-attachment-handler.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mail/e-mail-attachment-handler.c b/modules/mail/e-mail-attachment-handler.c
index c2b0cf5460..7f51274a5c 100644
--- a/modules/mail/e-mail-attachment-handler.c
+++ b/modules/mail/e-mail-attachment-handler.c
@@ -115,6 +115,9 @@ mail_attachment_handler_reply_all (GtkAction *action,
shell_settings = e_shell_get_shell_settings (priv->shell);
style = e_shell_settings_get_int (shell_settings, property_name);
+ /* em_utils_reply_to_message() unrefs 'message', thus ref it here */
+ g_object_ref (wrapper);
+
em_utils_reply_to_message (
priv->shell, NULL, NULL, CAMEL_MIME_MESSAGE (wrapper),
E_MAIL_REPLY_TO_ALL, style, NULL);
@@ -151,6 +154,9 @@ mail_attachment_handler_reply_sender (GtkAction *action,
shell_settings = e_shell_get_shell_settings (priv->shell);
style = e_shell_settings_get_int (shell_settings, property_name);
+ /* em_utils_reply_to_message() unrefs 'message', thus ref it here */
+ g_object_ref (wrapper);
+
em_utils_reply_to_message (
priv->shell, NULL, NULL, CAMEL_MIME_MESSAGE (wrapper),
E_MAIL_REPLY_TO_SENDER, style, NULL);