From 49c5e24a149a960b5f2736d7b1d98a4d56d7e2f0 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Tue, 15 May 2018 21:55:28 +0200 Subject: [PATCH] [psaux] Fix compiler warning (#53915). * src/psaux/psft.c (cf2_freeT1SeacComponent): Do it. --- ChangeLog | 6 ++++++ src/psaux/psft.c | 11 +++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8f44a924f..293bc9884 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2018-05-15 Werner Lemberg + + [psaux] Fix compiler warning (#53915). + + * src/psaux/psft.c (cf2_freeT1SeacComponent): Do it. + 2018-05-15 Werner Lemberg [sfnt] Fix memory leak in handling `COLR' data. diff --git a/src/psaux/psft.c b/src/psaux/psft.c index 1f750174a..32e0bae5c 100644 --- a/src/psaux/psft.c +++ b/src/psaux/psft.c @@ -767,13 +767,14 @@ cf2_freeT1SeacComponent( PS_Decoder* decoder, CF2_Buffer buf ) { +#ifdef FT_CONFIG_OPTION_INCREMENTAL + T1_Face face; FT_Data data; FT_ASSERT( decoder ); -#ifdef FT_CONFIG_OPTION_INCREMENTAL face = (T1_Face)decoder->builder.face; data.pointer = buf->start; @@ -783,7 +784,13 @@ face->root.internal->incremental_interface->funcs->free_glyph_data( face->root.internal->incremental_interface->object, &data ); -#endif /* FT_CONFIG_OPTION_INCREMENTAL */ + +#else /* !FT_CONFIG_OPTION_INCREMENTAL */ + + FT_UNUSED( decoder ); + FT_UNUSED( buf ); + +#endif /* !FT_CONFIG_OPTION_INCREMENTAL */ }