[coretext] Fix leak!

This commit is contained in:
Behdad Esfahbod 2016-02-22 15:31:22 +09:00
parent e561122856
commit 238b943e85
1 changed files with 1 additions and 0 deletions

View File

@ -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);