From 98289a2a65a79c329f769882a45f6aada7123fc0 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 );