aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/ChangeLog1
-rw-r--r--mail/mail-callbacks.c10
2 files changed, 10 insertions, 1 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 8bf03326c8..41477f37d5 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -5,6 +5,7 @@
ops, set local_font to NULL
(do_mail_print): get rid of static global variables, as they are
not thread safe (thanks to clahey for pointing this out)
+ (footer_info_free): unref footer font
2002-01-28 Jeffrey Stedfast <fejj@ximian.com>
diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c
index 2ee006cdbb..f84e9ec567 100644
--- a/mail/mail-callbacks.c
+++ b/mail/mail-callbacks.c
@@ -2418,6 +2418,14 @@ footer_print_cb (GtkHTML *html, GnomePrintContext *print_context,
}
}
+static void
+footer_info_free (struct footer_info *info)
+{
+ if (info->local_font)
+ gnome_font_unref (info->local_font);
+ g_free (info);
+}
+
static struct footer_info *
footer_info_new (GtkHTML *html, GnomePrintContext *pc, gdouble *line)
{
@@ -2492,7 +2500,7 @@ do_mail_print (FolderBrowser *fb, gboolean preview)
info = footer_info_new (html, print_context, &line);
gtk_html_print_with_header_footer (html, print_context, 0.0, line, NULL, footer_print_cb, info);
- g_free (info);
+ footer_info_free (info);
fb->mail_display->printing = FALSE;