aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRadek Doulik <rodo@src.gnome.org>2002-01-30 03:56:48 +0800
committerRadek Doulik <rodo@src.gnome.org>2002-01-30 03:56:48 +0800
commite43d51f0f37a6dbc4120ce12e873a5ca3647eba9 (patch)
tree62b2595e80691538b28dc716b3c55967ee55427b
parent2488e2dfc18e22e5839fcd234d9b2b625f4cedfd (diff)
downloadgsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.gz
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.bz2
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.lz
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.xz
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.zst
gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.zip
(footer_info_free): unref footer font
svn path=/trunk/; revision=15509
-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;