diff --git a/src/gf/gfdrivr.c b/src/gf/gfdrivr.c index acd7f40d2..df78f7686 100644 --- a/src/gf/gfdrivr.c +++ b/src/gf/gfdrivr.c @@ -523,7 +523,6 @@ */ face->tfm_data = fi; - fi = NULL; } Exit: diff --git a/src/tfm/tfmobjs.c b/src/tfm/tfmobjs.c index 8cd3b5bf5..7e4ec55e9 100644 --- a/src/tfm/tfmobjs.c +++ b/src/tfm/tfmobjs.c @@ -131,9 +131,9 @@ FT_LOCAL( void ) tfm_close( TFM_Parser parser ) { - FT_Memory memory = parser->memory; + FT_UNUSED( parser ); - FT_FREE( parser->stream ); + /* nothing */ } @@ -346,13 +346,10 @@ fi->slant = (FT_ULong)((double)fi->slant/(double)(1<<20)); Exit: - if( !ci || !w || !h || !d ) - { - FT_FREE(ci); - FT_FREE(w); - FT_FREE(h); - FT_FREE(d); - } + FT_FREE(ci); + FT_FREE(w); + FT_FREE(h); + FT_FREE(d); return error; }