From e43d51f0f37a6dbc4120ce12e873a5ca3647eba9 Mon Sep 17 00:00:00 2001 From: Radek Doulik Date: Tue, 29 Jan 2002 19:56:48 +0000 Subject: (footer_info_free): unref footer font svn path=/trunk/; revision=15509 --- mail/ChangeLog | 1 + mail/mail-callbacks.c | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) 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 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; -- cgit v1.2.3