* src/cff/cffgload.c (cff_slot_load): Avoid memory leak.
Fixes issue #1204.
This commit is contained in:
parent
9508811a3a
commit
646cc8ef8d
@ -488,13 +488,14 @@
|
||||
decoder.builder.no_recurse =
|
||||
FT_BOOL( load_flags & FT_LOAD_NO_RECURSE );
|
||||
|
||||
/* now load the unscaled outline */
|
||||
error = cff_get_glyph_data( face, glyph_index,
|
||||
&charstring, &charstring_len );
|
||||
/* this function also checks for a valid subfont index */
|
||||
error = decoder_funcs->prepare( &decoder, size, glyph_index );
|
||||
if ( error )
|
||||
goto Glyph_Build_Finished;
|
||||
|
||||
error = decoder_funcs->prepare( &decoder, size, glyph_index );
|
||||
/* now load the unscaled outline */
|
||||
error = cff_get_glyph_data( face, glyph_index,
|
||||
&charstring, &charstring_len );
|
||||
if ( error )
|
||||
goto Glyph_Build_Finished;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user