browser(webkit): fix the datastore leak (#4163)
This commit is contained in:
parent
305d209e82
commit
26442c563c
|
|
@ -1,2 +1,2 @@
|
||||||
1359
|
1360
|
||||||
Changed: yurys@chromium.org Thu Oct 15 14:23:29 PDT 2020
|
Changed: pavel.feldman@gmail.com Thu Oct 15 14:25:29 PDT 2020
|
||||||
|
|
|
||||||
|
|
@ -333,7 +333,7 @@ const NSActivityOptions ActivityOptions =
|
||||||
if (!proxyBypassList || ![proxyBypassList length])
|
if (!proxyBypassList || ![proxyBypassList length])
|
||||||
proxyBypassList = _proxyBypassList;
|
proxyBypassList = _proxyBypassList;
|
||||||
[dataStoreConfiguration setProxyConfiguration:[self proxyConfiguration:proxyServer WithBypassList:proxyBypassList]];
|
[dataStoreConfiguration setProxyConfiguration:[self proxyConfiguration:proxyServer WithBypassList:proxyBypassList]];
|
||||||
browserContext.dataStore = [[WKWebsiteDataStore alloc] _initWithConfiguration:dataStoreConfiguration];
|
browserContext.dataStore = [[[WKWebsiteDataStore alloc] _initWithConfiguration:dataStoreConfiguration] autorelease];
|
||||||
browserContext.processPool = [[[WKProcessPool alloc] _initWithConfiguration:processConfiguration] autorelease];
|
browserContext.processPool = [[[WKProcessPool alloc] _initWithConfiguration:processConfiguration] autorelease];
|
||||||
[browserContext.processPool _setDownloadDelegate:self];
|
[browserContext.processPool _setDownloadDelegate:self];
|
||||||
[_browserContexts addObject:browserContext];
|
[_browserContexts addObject:browserContext];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue