[type1] Avoid dangling pointer (#46572).

* src/type1/t1afm.c (T1_Read_Metrics): Properly reset
`face->afm_data'.
This commit is contained in:
Werner Lemberg 2015-12-01 12:09:02 +01:00
parent f8c2057789
commit 5b05bc6638
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2015-12-01 Werner Lemberg <wl@gnu.org>
[type1] Avoid dangling pointer (#46572).
* src/type1/t1afm.c (T1_Read_Metrics): Properly reset
`face->afm_data'.
2015-11-28 Alexei Podtelezhnikov <apodtele@gmail.com>
* include/freetype/ftlcdfil.h: Documentation tweak.

View File

@ -248,6 +248,8 @@
FT_TRACE1(( "T1_Read_Metrics:"
" Freeing previously attached metrics data.\n" ));
T1_Done_Metrics( memory, (AFM_FontInfo)face->afm_data );
face->afm_data = NULL;
}
if ( FT_NEW( fi ) ||