diff options
author | Radek Doulik <rodo@src.gnome.org> | 2002-01-30 03:56:48 +0800 |
---|---|---|
committer | Radek Doulik <rodo@src.gnome.org> | 2002-01-30 03:56:48 +0800 |
commit | e43d51f0f37a6dbc4120ce12e873a5ca3647eba9 (patch) | |
tree | 62b2595e80691538b28dc716b3c55967ee55427b /mail/mail-callbacks.c | |
parent | 2488e2dfc18e22e5839fcd234d9b2b625f4cedfd (diff) | |
download | gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.gz gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.tar.zst gsoc2013-evolution-e43d51f0f37a6dbc4120ce12e873a5ca3647eba9.zip |
(footer_info_free): unref footer font
svn path=/trunk/; revision=15509
Diffstat (limited to 'mail/mail-callbacks.c')
-rw-r--r-- | mail/mail-callbacks.c | 10 |
1 files changed, 9 insertions, 1 deletions
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; |