From 710bf5228834951eed958f27ffe309272d28cb21 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 16 Apr 2002 23:36:57 +0000 Subject: Ref the prefs widget here since we unref in the destroy callback. Caught 2002-04-16 Jeffrey Stedfast * mail-config-factory.c (config_control_factory_cb): Ref the prefs widget here since we unref in the destroy callback. Caught this thanks to purify. svn path=/trunk/; revision=16481 --- mail/mail-format.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'mail/mail-format.c') diff --git a/mail/mail-format.c b/mail/mail-format.c index 604740793c..79bc90c9fb 100644 --- a/mail/mail-format.c +++ b/mail/mail-format.c @@ -1259,7 +1259,7 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre char *text, *line, *eol, *p; int prevquoting = 0, quoting, len, br_pending = 0; guint32 citation_color = mail_config_get_citation_color (); - + mail_html_write (html, stream, "\n\n" "
\n\n"); @@ -1269,7 +1269,7 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre eol = strchr (line, '\n'); if (eol) *eol = '\0'; - + quoting = 0; for (p = line; *p == '>'; p++) quoting++; @@ -1319,16 +1319,17 @@ handle_text_plain_flowed (char *buf, MailDisplay *md, GtkHTML *html, GtkHTMLStre mail_html_write (html, stream, text); g_free (text); - if (p[len - 1] != ' ' || !strcmp (p, "-- ")) + if ((len > 0 && p[len - 1]) != ' ' || !strcmp (p, "-- ")) br_pending++; if (!eol) break; } + g_free (buf); - + mail_html_write (html, stream, "\n
\n"); - + return TRUE; } -- cgit