* src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).

This commit is contained in:
Werner Lemberg 2015-11-15 04:45:42 +01:00
parent 49984c9bc0
commit 94cacac594
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2015-11-15 Werner Lemberg <wl@gnu.org>
* src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).
2015-11-11 Werner Lemberg <wl@gnu.org>
[cff, autofit] Switch off stem darkening by default.

View File

@ -1792,9 +1792,11 @@
glyph->encoding = (long)font->unencoded_used++;
}
else
{
/* Free up the glyph name if the unencoded shouldn't be */
/* kept. */
FT_FREE( p->glyph_name );
}
p->glyph_name = NULL;
}
@ -2598,6 +2600,7 @@
memory = extmemory;
FT_FREE( p->font );
FT_FREE( p->glyph_name );
goto Exit;
}