aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2002-06-06 06:47:08 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2002-06-06 06:47:08 +0800
commit9ce5b00386787d6a10c7df2428c7752c914bdee4 (patch)
treefe61a5cf2b075c915c010bf2d1ff80e14fbc3e2b /mail
parent5706b15132615bc427f27516bb599a1baa076523 (diff)
downloadgsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar.gz
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar.bz2
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar.lz
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar.xz
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.tar.zst
gsoc2013-evolution-9ce5b00386787d6a10c7df2428c7752c914bdee4.zip
Don't forget to free the date string buffer.
2002-06-05 Jeffrey Stedfast <fejj@ximian.com> * mail-format.c (mail_get_message_rfc822): Don't forget to free the date string buffer. svn path=/trunk/; revision=17127
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/mail-format.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 1d8b318c6b..58099ee09b 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2002-06-05 Jeffrey Stedfast <fejj@ximian.com>
+
+ * mail-format.c (mail_get_message_rfc822): Don't forget to free
+ the date string buffer.
+
2002-06-05 Radek Doulik <rodo@ximian.com>
* mail-composer-prefs.c (sig_fill_clist): use gtk string instead
diff --git a/mail/mail-format.c b/mail/mail-format.c
index 54c2df859a..c17e614636 100644
--- a/mail/mail-format.c
+++ b/mail/mail-format.c
@@ -2286,7 +2286,8 @@ mail_get_message_rfc822 (CamelMimeMessage *message, gboolean want_plain, gboolea
html = e_text_to_html (buf, E_TEXT_TO_HTML_CONVERT_NL);
g_string_sprintfa (retval, "%s<b>Date:</b> %s<br>", citation, html);
g_free (html);
-
+ g_free (buf);
+
if (!g_strncasecmp (text, "<pre>", 5))
g_string_sprintfa (retval, "%s<br>%s", citation, text + 5);
else