From 238b943e850ea1ab0093e12c74d2cd7c686f318e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 22 Feb 2016 15:31:22 +0900 Subject: [PATCH] [coretext] Fix leak! --- src/hb-coretext.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-coretext.cc b/src/hb-coretext.cc index 5d6ce9b46..0988a597c 100644 --- a/src/hb-coretext.cc +++ b/src/hb-coretext.cc @@ -108,6 +108,7 @@ create_ct_font (CGFontRef cg_font, CGFloat font_size) CFRelease (attributes); CTFontRef new_ct_font = CTFontCreateCopyWithAttributes (ct_font, 0.0, NULL, new_font_desc); + CFRelease (new_font_desc); if (new_ct_font) { CFRelease (ct_font);