summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-09-14 13:51:27 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-09-14 13:51:27 +0000
commitf649837613471a2d3c688a0d3cece6922d2644a8 (patch)
tree7abd13d45cb381ff48c8971f5f48c56eb355f14d /gtk
parentb4d13a212ecfb890cab91758065d2d3451f5924d (diff)
downloadgdk-pixbuf-f649837613471a2d3c688a0d3cece6922d2644a8.tar.gz
Unref the PangoFontMetrics. Patch from Steve Chaplin (#122257).
Sun Sep 14 15:49:00 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the PangoFontMetrics. Patch from Steve Chaplin (#122257).
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktoolbar.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktoolbar.c b/gtk/gtktoolbar.c
index 011db4b54..c2ce588c0 100644
--- a/gtk/gtktoolbar.c
+++ b/gtk/gtktoolbar.c
@@ -638,6 +638,8 @@ toolbar_item_is_homogeneous (GtkToolbar *toolbar,
widget->style->font_desc,
pango_context_get_language (context));
char_width = pango_font_metrics_get_approximate_char_width (metrics);
+ pango_font_metrics_unref (metrics);
+
max_homogeneous_pixels = PANGO_PIXELS (MAX_HOMOGENEOUS_N_CHARS * char_width);
result = gtk_tool_item_get_homogeneous (item) && !GTK_IS_SEPARATOR_TOOL_ITEM (item);