aboutsummaryrefslogtreecommitdiff
path: root/src/ido-detail-label.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ido-detail-label.c')
-rw-r--r--src/ido-detail-label.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/ido-detail-label.c b/src/ido-detail-label.c
index 9a163b7..8b7ef90 100644
--- a/src/ido-detail-label.c
+++ b/src/ido-detail-label.c
@@ -138,15 +138,19 @@ static PangoFontMetrics *
gtk_widget_get_font_metrics (GtkWidget *widget,
PangoContext *context)
{
- const PangoFontDescription *font;
+ PangoFontDescription *font;
+ PangoFontMetrics *metrics;
gtk_style_context_get (gtk_widget_get_style_context (widget),
gtk_widget_get_state_flags (widget),
"font", &font, NULL);
- return pango_context_get_metrics (context,
- font,
- pango_context_get_language (context));
+ metrics = pango_context_get_metrics (context,
+ font,
+ pango_context_get_language (context));
+
+ pango_font_description_free (font);
+ return metrics;
}
static gint