diff --git a/ChangeLog b/ChangeLog index 6f202b9f1..be4712ba0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-02-20 suzuki toshiya + + * src/base/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Fix memory + leak, patch by "Jjgod Jiang" . + * builds/mac/ftmac.c (FT_GetFileRef_From_Mac_ATS_Name): Ditto. + 2007-02-16 Werner Lemberg * src/truetype/ttinterp.c (Ins_MD): Remove unused variable. diff --git a/builds/mac/ftmac.c b/builds/mac/ftmac.c index 4c0788fd9..d6a8558ee 100644 --- a/builds/mac/ftmac.c +++ b/builds/mac/ftmac.c @@ -283,6 +283,7 @@ kCFStringEncodingMacRoman ); ats_font_id = ATSFontFindFromName( cf_fontName, kATSOptionFlagsUnRestrictedScope ); + CFRelease(cf_fontName); if ( ats_font_id == 0 || ats_font_id == 0xFFFFFFFFUL ) return FT_Err_Unknown_File_Format; diff --git a/src/base/ftmac.c b/src/base/ftmac.c index 1347d7dbb..d69658607 100644 --- a/src/base/ftmac.c +++ b/src/base/ftmac.c @@ -145,6 +145,7 @@ kCFStringEncodingMacRoman ); ats_font_id = ATSFontFindFromName( cf_fontName, kATSOptionFlagsUnRestrictedScope ); + CFRelease( cf_fontName ); if ( ats_font_id == 0 || ats_font_id == 0xFFFFFFFFUL ) return FT_Err_Unknown_File_Format;