summaryrefslogtreecommitdiff
path: root/pango/pangocairo-font.c
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2007-09-08 00:05:54 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2007-09-08 00:05:54 +0000
commitd1826e7b5835c4fea8f2e86919a8ca74adff6ff6 (patch)
tree93bf9c311b3b294287f2d1ec486446975e61523b /pango/pangocairo-font.c
parentc7c8da4617da9c3069725ca4bfadabb1f5924aba (diff)
downloadpango-d1826e7b5835c4fea8f2e86919a8ca74adff6ff6.tar.gz
Part of Bug 474708 – pangocairo leaks memory
2007-09-07 Behdad Esfahbod <behdad@gnome.org> Part of Bug 474708 – pangocairo leaks memory * pango/pangocairo-font.c (_pango_cairo_font_private_get_hex_box_info): Fix a couple leaks. * pango/pangocairo-atsui.h: * pango/pangocairo-atsuifontmap.c (pango_cairo_atsui_font_map_finalize): * pango/pangocairo-fc.h: * pango/pangocairo-fcfontmap.c (pango_cairo_fc_font_map_finalize): * pango/pangocairo-win32.h: * pango/pangocairo-win32fontmap.c (pango_cairo_win32_font_map_finalize): Remove unused leftover renderer variable. * pango/pangofc-fontmap.c (pango_fc_font_map_finalize): Fix thinko. svn path=/trunk/; revision=2424
Diffstat (limited to 'pango/pangocairo-font.c')
-rw-r--r--pango/pangocairo-font.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pango/pangocairo-font.c b/pango/pangocairo-font.c
index 3ca4073e..8c6ab66b 100644
--- a/pango/pangocairo-font.c
+++ b/pango/pangocairo-font.c
@@ -404,6 +404,7 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
g_object_unref (context);
}
+ pango_font_description_free (desc);
cairo_font_options_destroy (font_options);
@@ -469,6 +470,7 @@ _pango_cairo_font_private_get_hex_box_info (PangoCairoFontPrivate *cf_priv)
hbi->box_descent = HINT_Y (hbi->box_descent);
}
+ cf_priv->hbi = hbi;
return hbi;
}