UIImage in UIColor, which is of a pattern, should be using StrongId to better manage it's life time
@@ -223,7 +223,7 @@ rgb hsv2rgb(hsv in) {
@implementation UIColor {
@public
enum BrushType _type;
- UIImage* _image;
+ StrongId<UIImage> _image;
woc::StrongCF<CGPatternRef> _pattern;
__CGColorQuad _components;
// Note: This should be part of the CGColor struct
@@ -510,7 +510,7 @@ rgb hsv2rgb(hsv in) {
}
_pattern = _CGPatternCreateFromImage(pImg);
- _image = [image retain];
+ _image = image;
_type = cgPatternBrush;
_components.r = 0.0f;
@@ -755,14 +755,6 @@ rgb hsv2rgb(hsv in) {
}
}
-/**
- @Status Interoperable
-*/
-- (void)dealloc {
- [_image release];
- [super dealloc];
-}
-
/**
@Status Stub
*/
