AliSoftware / AliSoftware/OHAttributedLabel

Potential leak in NSAttributedString+Attributes

Ouverte
#173 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Objective-C
Étoiles
1.5k
Forks
341
Métriques de merge des PR
Aucune PR mergée en 30 j

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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.