browser(webkit): fix the datastore leak (#4163)

This commit is contained in:
Pavel Feldman 2020-10-16 08:14:59 -07:00 committed by GitHub
parent 305d209e82
commit 26442c563c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,2 +1,2 @@
1359
Changed: yurys@chromium.org Thu Oct 15 14:23:29 PDT 2020
1360
Changed: pavel.feldman@gmail.com Thu Oct 15 14:25:29 PDT 2020

View File

@ -333,7 +333,7 @@ const NSActivityOptions ActivityOptions =
if (!proxyBypassList || ![proxyBypassList length])
proxyBypassList = _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 _setDownloadDelegate:self];
[_browserContexts addObject:browserContext];