[type1] Avoid dangling pointer (#46572).
* src/type1/t1afm.c (T1_Read_Metrics): Properly reset `face->afm_data'.
This commit is contained in:
parent
f8c2057789
commit
5b05bc6638
|
@ -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.
|
||||
|
|
|
@ -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 ) ||
|
||||
|
|
Loading…
Reference in New Issue