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:
parent
7fd03a3e25
commit
bee8886408
|
@ -1674,7 +1674,6 @@
|
||||||
FT_FREE( stream->base );
|
FT_FREE( stream->base );
|
||||||
|
|
||||||
stream->size = 0;
|
stream->size = 0;
|
||||||
stream->base = NULL;
|
|
||||||
stream->close = NULL;
|
stream->close = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1188,7 +1188,6 @@
|
||||||
FT_TRACE0(( "ps_parser_load_field: overwriting field %s\n",
|
FT_TRACE0(( "ps_parser_load_field: overwriting field %s\n",
|
||||||
field->ident ));
|
field->ident ));
|
||||||
FT_FREE( *(FT_String**)q );
|
FT_FREE( *(FT_String**)q );
|
||||||
*(FT_String**)q = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( FT_QALLOC( string, len + 1 ) )
|
if ( FT_QALLOC( string, len + 1 ) )
|
||||||
|
|
|
@ -64,7 +64,6 @@
|
||||||
FT_FREE( stream->base );
|
FT_FREE( stream->base );
|
||||||
|
|
||||||
stream->size = 0;
|
stream->size = 0;
|
||||||
stream->base = NULL;
|
|
||||||
stream->close = NULL;
|
stream->close = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -94,7 +94,6 @@
|
||||||
FT_FREE( stream->base );
|
FT_FREE( stream->base );
|
||||||
|
|
||||||
stream->size = 0;
|
stream->size = 0;
|
||||||
stream->base = NULL;
|
|
||||||
stream->close = NULL;
|
stream->close = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -415,7 +415,6 @@
|
||||||
FT_FREE( blend->avar_segment[j].correspondence );
|
FT_FREE( blend->avar_segment[j].correspondence );
|
||||||
|
|
||||||
FT_FREE( blend->avar_segment );
|
FT_FREE( blend->avar_segment );
|
||||||
blend->avar_segment = NULL;
|
|
||||||
goto Exit;
|
goto Exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2747,7 +2746,6 @@
|
||||||
/* The cvt table has been loaded already; every time we change the */
|
/* The cvt table has been loaded already; every time we change the */
|
||||||
/* blend we may need to reload and remodify the cvt table. */
|
/* blend we may need to reload and remodify the cvt table. */
|
||||||
FT_FREE( face->cvt );
|
FT_FREE( face->cvt );
|
||||||
face->cvt = NULL;
|
|
||||||
|
|
||||||
error = tt_face_load_cvt( face, face->root.stream );
|
error = tt_face_load_cvt( face, face->root.stream );
|
||||||
break;
|
break;
|
||||||
|
@ -2766,7 +2764,6 @@
|
||||||
|
|
||||||
/* enforce recomputation of the PostScript name; */
|
/* enforce recomputation of the PostScript name; */
|
||||||
FT_FREE( face->postscript_name );
|
FT_FREE( face->postscript_name );
|
||||||
face->postscript_name = NULL;
|
|
||||||
|
|
||||||
Exit:
|
Exit:
|
||||||
return error;
|
return error;
|
||||||
|
|
Loading…
Reference in New Issue