AliSoftware / AliSoftware/OHAttributedLabel

Potential leak in NSAttributedString+Attributes

Abierto
#173 1 comentario 0 reacciones 0 asignados Ver en GitHub
Lenguaje dominante
Objective-C
Estrellas
1.5k
Forks
341
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

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.

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.