ref: 94cacac59479566f9718e6ebfa44f5477c889002
parent: 49984c9bc0ee0a91474227fd911b4a79d73dc682
author: Werner Lemberg <[email protected]>
date: Sat Nov 14 23:45:42 EST 2015
* src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-11-15 Werner Lemberg <[email protected]>
+
+ * src/bdf/bdflib.c (bdf_load_font): Fix small memory leak (#46439).
+
2015-11-11 Werner Lemberg <[email protected]>
[cff, autofit] Switch off stem darkening by default.
--- a/src/bdf/bdflib.c
+++ b/src/bdf/bdflib.c
@@ -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;
}