* src/truetype/ttxgvar.c (ft_var_load_avar, ft_var_load_gvar): Fix

error handling.
This commit is contained in:
Werner Lemberg 2004-05-10 20:54:27 +00:00
parent ab5f9cf25a
commit 522b25290e
2 changed files with 11 additions and 6 deletions

View File

@ -1,3 +1,8 @@
2004-05-09 George Williams <gww@silcom.com>
* src/truetype/ttxgvar.c (ft_var_load_avar, ft_var_load_gvar): Fix
error handling.
2004-05-07 Werner Lemberg <wl@gnu.org>
* src/pfr/pfrobjs.c, src/pfr/pfrobjs.h (pfr_face_init,

View File

@ -294,7 +294,7 @@
if ( version != 0x00010000L ||
axisCount != (FT_Long)blend->mmvar->num_axis )
return;
goto Exit;
if ( FT_NEW_ARRAY( blend->avar_segment, axisCount ) )
goto Exit;
@ -1451,9 +1451,6 @@
FT_Stream_SeekSet( stream, here );
}
FT_FRAME_EXIT();
goto Exit;
Fail3:
FT_FREE( tuple_coords );
FT_FREE( im_start_coords );
@ -1463,8 +1460,11 @@
FT_FRAME_EXIT();
Fail1:
FT_FREE( delta_xy );
*deltas = NULL;
if ( error )
{
FT_FREE( delta_xy );
*deltas = NULL;
}
Exit:
return error;