AliSoftware / AliSoftware/OHAttributedLabel

Potential leak in NSAttributedString+Attributes

オープン
#173 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Objective-C
スター
1.5k
フォーク
341
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。