* src/sfnt/ttload.c (tt_face_free_names): Check that `table->names'

is not NULL.  Reported by Gordon Childs <gchilds@quickcut.com.au>.
This commit is contained in:
Werner Lemberg 2004-05-03 21:31:43 +00:00
parent 4cc5df80fe
commit 44005cd358
2 changed files with 14 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2004-05-02 Werner Lemberg <wl@gnu.org>
* src/sfnt/ttload.c (tt_face_free_names): Check that `table->names'
is not NULL. Reported by Gordon Childs <gchilds@quickcut.com.au>.
2004-04-29 Werner Lemberg <wl@gnu.org>
* docs/formats.txt: Add more information on PFR format.

View File

@ -1198,6 +1198,8 @@
FT_UInt count = table->numNameRecords;
if ( table->names )
{
for ( ; count > 0; count--, entry++ )
{
FT_FREE( entry->string );
@ -1206,6 +1208,7 @@
/* free strings table */
FT_FREE( table->names );
}
table->numNameRecords = 0;
table->format = 0;