v3: REGRESSION (r218419): 3 NSMutableDictionary leaks calling -[WKProcessPool _plugin...
authorddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 20:45:46 +0000 (20:45 +0000)
committerddkilzer@apple.com <ddkilzer@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 23 Jun 2017 20:45:46 +0000 (20:45 +0000)
commit84b195c435f683be0d0bb195863d6d0561b55022
treef915b3c001780d152a265d64519cd65714da3a85
parentef11790d6627e6b77adab44d692c7dffa5da5b96
v3: REGRESSION (r218419): 3 NSMutableDictionary leaks calling -[WKProcessPool _pluginLoadClientPolicies]
<https://webkit.org/b/173689>

Reviewed by Tim Horton.

* UIProcess/API/Cocoa/WKProcessPool.mm:
(policiesHashMapToDictionary): Use adoptNS().get() to avoid
dumping objects into autoreleasepools unnecessarily.
* UIProcess/API/Cocoa/WKProcessPoolPrivate.h:
(-[WKProcessPool _pluginLoadClientPolicies]): Add back 'copy'
attribute to document that we're returning a new object on each
invocation.  I shouldn't have removed it in the v2 patch.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@218760 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit2/ChangeLog
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPool.mm
Source/WebKit2/UIProcess/API/Cocoa/WKProcessPoolPrivate.h