[cairo-scaled-font-subsets] Fix memleak.

Valgrind reported that sub_font_glyph->utf8 was not being freed along
with the cairo_sub_font_glyph_t.
This commit is contained in:
Chris Wilson 2008-07-06 15:15:15 +01:00
parent 07b39ee3c0
commit fe7973d60a

View file

@ -174,6 +174,9 @@ _cairo_sub_font_glyph_create (unsigned long scaled_font_glyph_index,
static void
_cairo_sub_font_glyph_destroy (cairo_sub_font_glyph_t *sub_font_glyph)
{
if (sub_font_glyph->utf8 != NULL)
free (sub_font_glyph->utf8);
free (sub_font_glyph);
}