Changeset 241034 in webkit


Ignore:
Timestamp:
Feb 6, 2019 11:32:31 AM (5 years ago)
Author:
ddkilzer@apple.com
Message:

WTR::InjectedBundlePage::willSendRequestForFrame() leaks a WKDataRef
<https://webkit.org/b/194286>
<rdar://problem/47815558>

Reviewed by Alexey Proskuryakov.

  • WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:

(WTR::InjectedBundlePage::willSendRequestForFrame): Use
WKRetainPtr<> to avoid leaking the WKDataRef.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r241024 r241034  
     12019-02-06  David Kilzer  <ddkilzer@apple.com>
     2
     3        WTR::InjectedBundlePage::willSendRequestForFrame() leaks a WKDataRef
     4        <https://webkit.org/b/194286>
     5        <rdar://problem/47815558>
     6
     7        Reviewed by Alexey Proskuryakov.
     8
     9        * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp:
     10        (WTR::InjectedBundlePage::willSendRequestForFrame): Use
     11        WKRetainPtr<> to avoid leaking the WKDataRef.
     12
    1132019-02-06  Michael Catanzaro  <mcatanzaro@igalia.com>
    214
  • trunk/Tools/WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp

    r239848 r241034  
    12121212        if (!body.isEmpty()) {
    12131213            CString cBody = body.utf8();
    1214             return WKURLRequestCopySettingHTTPBody(request, WKDataCreate(reinterpret_cast<const unsigned char*>(cBody.data()), cBody.length()));
     1214            WKRetainPtr<WKDataRef> body = adoptWK(WKDataCreate(reinterpret_cast<const unsigned char*>(cBody.data()), cBody.length()));
     1215            return WKURLRequestCopySettingHTTPBody(request, body.get());
    12151216        }
    12161217    }
Note: See TracChangeset for help on using the changeset viewer.