aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-format.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-05-08 05:57:06 +0800
committerDan Winship <danw@src.gnome.org>2000-05-08 05:57:06 +0800
commit48b23b2a9b6edab81636c7f812136f9965567a0c (patch)
treef3aa187423c780e1d9b19724c6803b24ca2d43c6 /mail/mail-format.c
parent580d885820e5319e5dbe4f4aa1a7464b9bde2034 (diff)
downloadgsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar.gz
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar.bz2
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar.lz
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar.xz
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.tar.zst
gsoc2013-evolution-48b23b2a9b6edab81636c7f812136f9965567a0c.zip
unref the message after displaying it.
* message-list.c (select_msg): unref the message after displaying it. * mail-format.c (get_data_wrapper_text): (handle_text_plain_flowed): (handle_via_bonobo): Replace camel_stream_close calls. svn path=/trunk/; revision=2883
Diffstat (limited to 'mail/mail-format.c')
-rw-r--r--mail/mail-format.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 0fb9ddaa17..12026a5ce7 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -423,7 +423,7 @@ get_data_wrapper_text (CamelDataWrapper *data)
memcpy (text, ba->data, ba->len);
text[ba->len] = '\0';
- camel_stream_close (memstream);
+ gtk_object_unref (GTK_OBJECT (memstream));
return text;
}
@@ -534,7 +534,7 @@ handle_text_plain_flowed (CamelMimePart *part, CamelMimeMessage *root,
g_free (line);
} while (!camel_stream_eos (buffer));
- camel_stream_close (buffer);
+ gtk_object_unref (GTK_OBJECT (buffer));
mail_html_write (html, stream, "</tt>\n");
mail_html_end (html, stream, TRUE, box);
@@ -1061,7 +1061,7 @@ handle_via_bonobo (CamelMimePart *part, CamelMimeMessage *root, GtkBox *box)
/* ...convert the CamelStreamMem to a BonoboStreamMem... */
bstream = bonobo_stream_mem_create (ba->data, ba->len, TRUE, FALSE);
- camel_stream_close (cstream);
+ gtk_object_unref (GTK_OBJECT (cstream));
/* ...and hydrate the PersistStream from the BonoboStream. */
CORBA_exception_init (&ev);
@@ -1351,7 +1351,8 @@ mail_generate_forward (CamelMimeMessage *mime_message,
stream = camel_stream_fs_new_with_fd (fd);
camel_data_wrapper_write_to_stream (CAMEL_DATA_WRAPPER (mime_message),
stream);
- camel_stream_close (stream);
+ camel_stream_flush (stream);
+ gtk_object_unref (GTK_OBJECT (stream));
composer = E_MSG_COMPOSER (e_msg_composer_new ());
e_msg_composer_attachment_bar_attach (E_MSG_COMPOSER_ATTACHMENT_BAR (composer->attachment_bar), tmpfile);