From 4641129339ab5a364aad034dd414b70a66f8eaec Mon Sep 17 00:00:00 2001 From: Vinh Nguyen Date: Thu, 29 Sep 2016 12:07:58 +0800 Subject: [PATCH] Fix memory leak in font registration --- Classes/ios/UIFont+FlatUI.m | 1 + 1 file changed, 1 insertion(+) diff --git a/Classes/ios/UIFont+FlatUI.m b/Classes/ios/UIFont+FlatUI.m index 0694c57..b62870a 100644 --- a/Classes/ios/UIFont+FlatUI.m +++ b/Classes/ios/UIFont+FlatUI.m @@ -22,6 +22,7 @@ + (void) initialize { if (url) { CFErrorRef error; CTFontManagerRegisterFontsForURL((__bridge CFURLRef)url, kCTFontManagerScopeNone, &error); + CFRelease(error); } } });