mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-04 23:28:07 +02:00
[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:
parent
07b39ee3c0
commit
fe7973d60a
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue