⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 179874 in webkit


Ignore:
Timestamp:
Feb 10, 2015, 11:11:44 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Cocoa] NSData over retain in WKBrowsingContextController loadData
https://bugs.webkit.org/show_bug.cgi?id=141437

Patch by Joseph Pecoraro <Joseph Pecoraro> on 2015-02-10
Reviewed by Anders Carlsson.

  • UIProcess/API/Cocoa/WKBrowsingContextController.mm:

(-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
API::Data::createWithoutCopying will automatically do the retaining / releasing for us.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r179870 r179874  
     12015-02-10  Joseph Pecoraro  <pecoraro@apple.com>
     2
     3        [Cocoa] NSData over retain in WKBrowsingContextController loadData
     4        https://bugs.webkit.org/show_bug.cgi?id=141437
     5
     6        Reviewed by Anders Carlsson.
     7
     8        * UIProcess/API/Cocoa/WKBrowsingContextController.mm:
     9        (-[WKBrowsingContextController loadData:MIMEType:textEncodingName:baseURL:userData:]):
     10        API::Data::createWithoutCopying will automatically do the retaining / releasing for us.
     11
    1122015-02-10  Zhuo Li  <zachli@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKBrowsingContextController.mm

    r177760 r179874  
    241241    if (data) {
    242242        // FIXME: This should copy the data.
    243         [data retain];
    244243        apiData = API::Data::createWithoutCopying(data);
    245244    }
Note: See TracChangeset for help on using the changeset viewer.