aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-title-bar.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/e-shell-folder-title-bar.c')
-rw-r--r--shell/e-shell-folder-title-bar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-shell-folder-title-bar.c b/shell/e-shell-folder-title-bar.c
index 836da098cb..1ed1dcca6e 100644
--- a/shell/e-shell-folder-title-bar.c
+++ b/shell/e-shell-folder-title-bar.c
@@ -147,9 +147,12 @@ label_realize_callback (GtkWidget *widget,
e_font = e_font_from_gdk_font (style->font);
bolded_font = e_font_to_gdk_font (e_font, E_FONT_BOLD);
+ e_font_unref (e_font);
- gdk_font_unref (style->font);
- style->font = bolded_font;
+ if (bolded_font != NULL) {
+ gdk_font_unref (style->font);
+ style->font = bolded_font;
+ }
gtk_style_attach (style, widget->window);