Clean-up - do not doubt FT_FREE.

* src/base/ftobjs.c (memory_stream_close): Do not reassign zero
after `FT_FREE`.
* src/sfnt/sfwoff.c (sfnt_stream_close): Ditto.
* src/sfnt/sfwoff2.c (stream_close): Ditto.
* src/psaux/psobjs.c (ps_parser_load_field): Ditto.
* src/truetype/ttgxvar.c (ft_var_load_avar, tt_set_mm_blend,
tt_set_mm_blend): Ditto.
This commit is contained in:
Alexei Podtelezhnikov 2022-01-30 21:55:21 -05:00
parent 7fd03a3e25
commit bee8886408
5 changed files with 0 additions and 7 deletions

View File

@ -1674,7 +1674,6 @@
FT_FREE( stream->base );
stream->size = 0;
stream->base = NULL;
stream->close = NULL;
}

View File

@ -1188,7 +1188,6 @@
FT_TRACE0(( "ps_parser_load_field: overwriting field %s\n",
field->ident ));
FT_FREE( *(FT_String**)q );
*(FT_String**)q = NULL;
}
if ( FT_QALLOC( string, len + 1 ) )

View File

@ -64,7 +64,6 @@
FT_FREE( stream->base );
stream->size = 0;
stream->base = NULL;
stream->close = NULL;
}

View File

@ -94,7 +94,6 @@
FT_FREE( stream->base );
stream->size = 0;
stream->base = NULL;
stream->close = NULL;
}

View File

@ -415,7 +415,6 @@
FT_FREE( blend->avar_segment[j].correspondence );
FT_FREE( blend->avar_segment );
blend->avar_segment = NULL;
goto Exit;
}
@ -2747,7 +2746,6 @@
/* The cvt table has been loaded already; every time we change the */
/* blend we may need to reload and remodify the cvt table. */
FT_FREE( face->cvt );
face->cvt = NULL;
error = tt_face_load_cvt( face, face->root.stream );
break;
@ -2766,7 +2764,6 @@
/* enforce recomputation of the PostScript name; */
FT_FREE( face->postscript_name );
face->postscript_name = NULL;
Exit:
return error;