From b8b7ac82af21117d8a58d530d99db98383c2d0e3 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Wed, 22 Jan 2014 09:20:35 +0100 Subject: [PATCH] Synchronize with FreeType. This corresponds to commit ff8dc315d1f7ec73669ec96a10187def6139da5f `src/autofit/hbshim.c (af_get_coverage): Fix memory leaks.'. --- lib/taharfbuzz.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/taharfbuzz.c b/lib/taharfbuzz.c index 72ea59d..3289a7d 100644 --- a/lib/taharfbuzz.c +++ b/lib/taharfbuzz.c @@ -151,7 +151,7 @@ ta_get_coverage(TA_FaceGlobals globals, gsub_lookups); if (hb_set_is_empty(gsub_lookups)) - return FT_Err_Ok; /* nothing to do */ + goto Exit; /* nothing to do */ hb_ot_layout_collect_lookups(face, HB_OT_TAG_GPOS, @@ -264,7 +264,7 @@ ta_get_coverage(TA_FaceGlobals globals, if (!found) { TA_LOG_GLOBAL((" no blue characters found; style skipped\n")); - return FT_Err_Ok; + goto Exit; } } @@ -341,6 +341,7 @@ ta_get_coverage(TA_FaceGlobals globals, TA_LOG_GLOBAL(("\n\n")); #endif +Exit: hb_set_destroy(gsub_lookups); hb_set_destroy(gsub_glyphs); hb_set_destroy(gpos_lookups); -- 2.11.4.GIT