[Webkit-unassigned] [Bug 210658] New: REGRESSION (r234105): [iOS] WKColorButton leaks a UIColor

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Apr 17 09:26:21 PDT 2020


https://bugs.webkit.org/show_bug.cgi?id=210658

            Bug ID: 210658
           Summary: REGRESSION (r234105): [iOS] WKColorButton leaks a
                    UIColor
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: WebKit2
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: ddkilzer at webkit.org
                CC: thorton at apple.com, wenson_hsieh at apple.com
        Depends on: 187871

WKColorButton leaks a UIColor.

Found by clang static analyzer:

'WKColorButton' lacks a 'dealloc' instance method but must release '_color'

--

#pragma mark - WKColorButton

@interface WKColorButton : UIButton
@property (nonatomic, strong) UIColor *color;

+ (instancetype)colorButtonWithColor:(UIColor *)color;
@end

@implementation WKColorButton

+ (instancetype)colorButtonWithColor:(UIColor *)color
{
    WKColorButton *colorButton = [WKColorButton buttonWithType:UIButtonTypeCustom];
    colorButton.color = color;
    colorButton.backgroundColor = color;
    return colorButton;
}

@end


Referenced Bugs:

https://bugs.webkit.org/show_bug.cgi?id=187871
[Bug 187871] [iOS] Add support for input[type=color]
-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20200417/70c927df/attachment-0001.htm>


More information about the webkit-unassigned mailing list