diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-11-30 16:26:28 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2016-04-21 15:18:41 +0000 |
commit | a1eda6b9aa885619a357f5532e584092b8e5bf91 (patch) | |
tree | c10c5e40bbfbcf772bbee34a711c3fefcaf2f2ba | |
parent | 4ff390203caf278dcee20e1a61402431fd2166c2 (diff) |
Fix saving cookies
Release CookieStore in URLRequestContextGetterQt destructor,
this will eventually delete CookieMonsterDelegateQt and
trigger commit of cookies in cookie store backend.
Task-bumber: QTBUG-52121
Change-Id: Ic83c7ee3ece1c64ac9e47cba5dcf40e084d9c3dc
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
-rw-r--r-- | src/core/url_request_context_getter_qt.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/url_request_context_getter_qt.cpp b/src/core/url_request_context_getter_qt.cpp index dfc647731..bbabb8707 100644 --- a/src/core/url_request_context_getter_qt.cpp +++ b/src/core/url_request_context_getter_qt.cpp @@ -98,6 +98,7 @@ URLRequestContextGetterQt::URLRequestContextGetterQt(QSharedPointer<BrowserConte URLRequestContextGetterQt::~URLRequestContextGetterQt() { + m_cookieDelegate->setCookieMonster(0); // this will let CookieMonsterDelegateQt be deleted delete m_proxyConfigService.fetchAndStoreAcquire(0); } |