[truetype] Fix memory leak for broken GX fonts (#46188).

* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix scope of
deallocation.
This commit is contained in:
Werner Lemberg 2015-10-13 08:14:20 +02:00
parent f96094eef0
commit 7ef0d8661a
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,10 @@
2015-10-13 Werner Lemberg <wl@gnu.org>
[truetype] Fix memory leak for broken GX fonts (#46188).
* src/truetype/ttgxvar.c (TT_Vary_Apply_Glyph_Deltas): Fix scope of
deallocation.
2015-10-13 Werner Lemberg <wl@gnu.org> 2015-10-13 Werner Lemberg <wl@gnu.org>
[truetype] Fix commit from 2015-10-10. [truetype] Fix commit from 2015-10-10.

View File

@ -2059,8 +2059,6 @@
if ( localpoints != ALL_POINTS ) if ( localpoints != ALL_POINTS )
FT_FREE( localpoints ); FT_FREE( localpoints );
if ( sharedpoints != ALL_POINTS )
FT_FREE( sharedpoints );
FT_FREE( deltas_x ); FT_FREE( deltas_x );
FT_FREE( deltas_y ); FT_FREE( deltas_y );
@ -2072,6 +2070,8 @@
FT_TRACE5(( "\n" )); FT_TRACE5(( "\n" ));
Fail2: Fail2:
if ( sharedpoints != ALL_POINTS )
FT_FREE( sharedpoints );
FT_FREE( tuple_coords ); FT_FREE( tuple_coords );
FT_FREE( im_start_coords ); FT_FREE( im_start_coords );
FT_FREE( im_end_coords ); FT_FREE( im_end_coords );