Skip to content
This repository

DTCoreTextFontDescriptors:fontDescriptors method leaks CTFontCollectionRef object #371

Closed
keremerkan opened this Issue · 7 comments

2 participants

keremerkan Oliver Drobnik
keremerkan

The method creates a CTFontCollectionRef object with

CTFontCollectionRef fonts = CTFontCollectionCreateFromAvailableFonts(NULL);

but never releases it. Adding a

CFRelease(fonts);

at the end of the method corrects the leak.

Oliver Drobnik
Owner

@keremerkan pull request please?

keremerkan

@Cocoanetics I haven't forked the project, that's why I did not create a pull request. Should I attach a diff?

Oliver Drobnik
Owner
keremerkan

OK then, no problem. Thanks for the great library, it made my life a lot easier. :)

Oliver Drobnik
Owner
keremerkan

@Cocoanetics I contributed to your other project last week, perhaps you'll remember. I hope to contribute again in the future. ;)

Oliver Drobnik
Owner

since this is a minor leak, I have added it to the 1.4.1 milestone.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.