AliSoftware / AliSoftware/OHAttributedLabel
Potential leak in NSAttributedString+Attributes
Open
- Dominant language
- Objective-C
- Stars
- 1.5k
- Forks
- 341
- PR merge metrics
- No merged PRs in 30d
Description
Xcode 5 analyzer warns about a potential leak of `currentFont` in `NSAttributedString+Attributes.m` [here](https://github.com/AliSoftware/OHAttributedLabel/blob/master/OHAttributedLabel/Source/NSAttributedString%2BAttributes.m#L242).
> OHAttributedLabel/Source/NSAttributedString+Attributes.m:276:7: Potential leak of an object stored into 'currentFont'
It seems that a simple `CFRelease(currentFont)` would fix it.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.