We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there,
I discovered there is a memory leak generated when using the method CTFontManagerRegisterFontsForURL at line 46 of the main file.
CTFontManagerRegisterFontsForURL
Reason of this leak: errorRef is not being deallocated.
errorRef
Fix:
if (url != nil) { var errorRef: Unmanaged<CFError>? CTFontManagerRegisterFontsForURL(url! as CFURL, .none, &errorRef) errorRef?.release() }
Xcode 8 Swift 3
Thanks Loris
The text was updated successfully, but these errors were encountered:
memory leak because of errorRef is not being deallocated
a08815d
michalkonturek#9
No branches or pull requests
Hi there,
I discovered there is a memory leak generated when using the method
CTFontManagerRegisterFontsForURL
at line 46 of the main file.Reason of this leak:
errorRef
is not being deallocated.Fix:
if (url != nil) { var errorRef: Unmanaged<CFError>? CTFontManagerRegisterFontsForURL(url! as CFURL, .none, &errorRef) errorRef?.release() }
Xcode 8
Swift 3
Thanks
Loris
The text was updated successfully, but these errors were encountered: