From 7579edc55e7ac581e7960285c9a427fbbef0c3eb Mon Sep 17 00:00:00 2001 From: Tom Kacvinsky Date: Sun, 21 Oct 2001 16:29:16 +0000 Subject: [PATCH] In function CFF_Done_Font, make sure to free the subfonts array to avoid a memory leak. --- src/cff/cffload.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cff/cffload.c b/src/cff/cffload.c index 18a7ab61d..3df2eaba0 100644 --- 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 );