shithub: freetype+ttf2subf

Download patch

ref: 98289a2a65a79c329f769882a45f6aada7123fc0
parent: 12d40dac4236d4d574432a1436948b57f3b64b4c
author: Tom Kacvinsky <[email protected]>
date: Sun Oct 21 12:29:16 EDT 2001

In function CFF_Done_Font, make sure to free the subfonts array to
avoid a memory leak.

git/fs: mount .git/fs: mount/attach disallowed
--- a/src/cff/cffload.c
+++ b/src/cff/cffload.c
@@ -2246,6 +2246,8 @@
     for ( index = 0; index < font->num_subfonts; index++ )
       CFF_Done_SubFont( memory, font->subfonts[index] );
 
+    FREE( font->subfonts );
+
     CFF_Done_Encoding( &font->encoding, font->stream );
     CFF_Done_Charset( &font->charset, font->stream );