aboutsummaryrefslogtreecommitdiff
path: root/src/ido-detail-label.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2013-05-29 09:55:39 -0400
committerLars Uebernickel <lars.uebernickel@canonical.com>2013-05-29 09:55:39 -0400
commitebcad53cbfe52dc19462cd6021fe676b493b7a83 (patch)
tree54f1632f6d6318e982ecd515418dfa231bd14095 /src/ido-detail-label.c
parentbc3c2d1d5b6cf8ad2c6b4a64f41361a248f89d90 (diff)
downloadayatana-indicator-messages-ebcad53cbfe52dc19462cd6021fe676b493b7a83.tar.gz
ayatana-indicator-messages-ebcad53cbfe52dc19462cd6021fe676b493b7a83.tar.bz2
ayatana-indicator-messages-ebcad53cbfe52dc19462cd6021fe676b493b7a83.zip
ido-detail-label.c: free font desc
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