Changeset 172846 in webkit


Ignore:
Timestamp:
Aug 21, 2014 8:27:02 PM (10 years ago)
Author:
commit-queue@webkit.org
Message:

Possible RetainPtr misuse in WKScriptMessage.mm - could leak
https://bugs.webkit.org/show_bug.cgi?id=136140

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2014-08-21
Reviewed by Darin Adler.

Adopt a copy into a RetainPtr to avoid leaking.

  • UIProcess/API/Cocoa/WKScriptMessage.mm:

(-[WKScriptMessage _initWithBody:webView:frameInfo:name:]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r172836 r172846  
     12014-08-21  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        Possible RetainPtr misuse in WKScriptMessage.mm - could leak
     4        https://bugs.webkit.org/show_bug.cgi?id=136140
     5
     6        Reviewed by Darin Adler.
     7
     8        Adopt a copy into a RetainPtr to avoid leaking.
     9
     10        * UIProcess/API/Cocoa/WKScriptMessage.mm:
     11        (-[WKScriptMessage _initWithBody:webView:frameInfo:name:]):
     12
    1132014-08-21  Simon Fraser  <simon.fraser@apple.com>
    214
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKScriptMessage.mm

    r169684 r172846  
    4545        return nil;
    4646
    47     _body = [body copy];
     47    _body = adoptNS([body copy]);
    4848    _webView = webView;
    4949    _frameInfo = frameInfo;
Note: See TracChangeset for help on using the changeset viewer.