tobihagemann / THLabel

UILabel subclass, which additionally allows shadow blur, inner shadow, stroke text and fill gradient.
https://tobiha.de
Other
665 stars 111 forks source link

Potential memory leak on iOS 7 (xcode 5) #17

Closed boazin closed 10 years ago

boazin commented 10 years ago

Hi,

When I run Analyze I get a "THLabel.m:510:2: Potential leak of an object stored into 'image'" It is in inverseMaskFromAlphaMask the line - return image;

Also there are similar warnings for: THLabel.m:543:2: Potential leak of an object stored into 'image' THLabel.m:583:2: Potential leak of an object stored into 'image'

tobihagemann commented 10 years ago

Hi,

there shouldn't be any leaks, because all those imageRefs are being released (lines 272, 306, 358). If there is a better way to do that, please let me know!

Cheers, Tobias

valeriyvan commented 9 years ago

There is really one memory leak.

tobihagemann commented 9 years ago

Have you checked issue #22? Should be fixed now with version 1.4.4! :)

valeriyvan commented 9 years ago

Oops. Someone already fixed that.