< prev index next >
src/java.desktop/share/native/libfreetype/src/sfnt/sfwoff.c
Print this page
@@ -2,11 +2,11 @@
*
* sfwoff.c
*
* WOFF format management (base).
*
- * Copyright (C) 1996-2019 by
+ * Copyright (C) 1996-2020 by
* David Turner, Robert Wilhelm, and Werner Lemberg.
*
* This file is part of the FreeType project, and may only be used,
* modified, and distributed under the terms of the FreeType project
* license, LICENSE.TXT. By continuing to use, modify, or distribute
@@ -369,22 +369,22 @@
error = FT_Gzip_Uncompress( memory,
sfnt + table->OrigOffset, &output_len,
stream->cursor, table->CompLength );
if ( error )
- goto Exit;
+ goto Exit1;
if ( output_len != table->OrigLength )
{
FT_ERROR(( "woff_font_open: compressed table length mismatch\n" ));
error = FT_THROW( Invalid_Table );
- goto Exit;
+ goto Exit1;
}
#else /* !FT_CONFIG_OPTION_USE_ZLIB */
error = FT_THROW( Unimplemented_Feature );
- goto Exit;
+ goto Exit1;
#endif /* !FT_CONFIG_OPTION_USE_ZLIB */
}
FT_FRAME_EXIT();
@@ -422,10 +422,14 @@
FT_Stream_Close( sfnt_stream );
FT_FREE( sfnt_stream );
}
return error;
+
+ Exit1:
+ FT_FRAME_EXIT();
+ goto Exit;
}
#undef WRITE_USHORT
#undef WRITE_ULONG
< prev index next >