* src/truetype/ttgxvar.c (tt_done_blend): Fix deallocation.
This commit is contained in:
parent
6b35493115
commit
922812281c
|
@ -1,3 +1,7 @@
|
||||||
|
2016-10-11 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
|
* src/truetype/ttgxvar.c (tt_done_blend): Fix deallocation.
|
||||||
|
|
||||||
2016-10-08 Werner Lemberg <wl@gnu.org>
|
2016-10-08 Werner Lemberg <wl@gnu.org>
|
||||||
|
|
||||||
* src/cid/cidload.c (cid_face_open): Properly propagate `error'.
|
* src/cid/cidload.c (cid_face_open): Properly propagate `error'.
|
||||||
|
|
|
@ -2163,15 +2163,18 @@
|
||||||
{
|
{
|
||||||
if ( blend != NULL )
|
if ( blend != NULL )
|
||||||
{
|
{
|
||||||
FT_UInt i;
|
FT_UInt i, num_axes;
|
||||||
|
|
||||||
|
|
||||||
|
/* blend->num_axis might not be set up yet */
|
||||||
|
num_axes = blend->mmvar->num_axis;
|
||||||
|
|
||||||
FT_FREE( blend->normalizedcoords );
|
FT_FREE( blend->normalizedcoords );
|
||||||
FT_FREE( blend->mmvar );
|
FT_FREE( blend->mmvar );
|
||||||
|
|
||||||
if ( blend->avar_segment != NULL )
|
if ( blend->avar_segment != NULL )
|
||||||
{
|
{
|
||||||
for ( i = 0; i < blend->num_axis; i++ )
|
for ( i = 0; i < num_axes; i++ )
|
||||||
FT_FREE( blend->avar_segment[i].correspondence );
|
FT_FREE( blend->avar_segment[i].correspondence );
|
||||||
FT_FREE( blend->avar_segment );
|
FT_FREE( blend->avar_segment );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue