diff options
Diffstat (limited to 'freetype/src/base/ftotval.c')
-rw-r--r-- | freetype/src/base/ftotval.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/freetype/src/base/ftotval.c b/freetype/src/base/ftotval.c index 6bf8e04c6..ec39466a0 100644 --- a/freetype/src/base/ftotval.c +++ b/freetype/src/base/ftotval.c @@ -4,7 +4,7 @@ /* */ /* FreeType API for validating OpenType tables (body). */ /* */ -/* Copyright 2004, 2006, 2008 by */ +/* Copyright 2004, 2006, 2008, 2010 by */ /* David Turner, Robert Wilhelm, and Werner Lemberg. */ /* */ /* This file is part of the FreeType project, and may only be used, */ @@ -74,9 +74,14 @@ FT_OpenType_Free( FT_Face face, FT_Bytes table ) { - FT_Memory memory = FT_FACE_MEMORY( face ); + FT_Memory memory; + if ( !face ) + return; + + memory = FT_FACE_MEMORY( face ); + FT_FREE( table ); } |