Changeset 203841 in webkit
- Timestamp:
- Jul 28, 2016 2:17:58 PM (8 years ago)
- Location:
- trunk/Source/WebKit/mac
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/mac/ChangeLog
r203756 r203841 1 2016-07-28 Anders Carlsson <andersca@apple.com> 2 3 Use a RetainPtr in WebFrameLoaderClient::assignIdentifierToInitialRequest 4 https://bugs.webkit.org/show_bug.cgi?id=160315 5 6 Reviewed by Tim Horton. 7 8 * WebCoreSupport/WebFrameLoaderClient.mm: 9 (WebFrameLoaderClient::assignIdentifierToInitialRequest): 10 1 11 2016-07-26 Simon Fraser <simon.fraser@apple.com> 2 12 -
trunk/Source/WebKit/mac/WebCoreSupport/WebFrameLoaderClient.mm
r203003 r203841 334 334 WebResourceDelegateImplementationCache* implementations = WebViewGetResourceLoadDelegateImplementations(webView); 335 335 336 id object = nil;337 BOOL shouldRelease = NO; 336 RetainPtr<id> object; 337 338 338 #if PLATFORM(IOS) 339 339 if (implementations->webThreadIdentifierForRequestFunc) { … … 343 343 if (implementations->identifierForRequestFunc) 344 344 object = CallResourceLoadDelegate(implementations->identifierForRequestFunc, webView, @selector(webView:identifierForInitialRequest:fromDataSource:), request.nsURLRequest(UpdateHTTPBody), dataSource(loader)); 345 else { 346 object = [[NSObject alloc] init]; 347 shouldRelease = YES; 348 } 349 350 [webView _addObject:object forIdentifier:identifier]; 351 352 if (shouldRelease) 353 [object release]; 345 else 346 object = adoptNS([[NSObject alloc] init]); 347 348 [webView _addObject:object.get() forIdentifier:identifier]; 354 349 } 355 350
Note: See TracChangeset
for help on using the changeset viewer.