diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2016-08-17 15:18:57 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2016-08-21 22:24:46 +0000 |
commit | f589b8b411f1049f6f2f701478e0c38c72ad824a (patch) | |
tree | 958c4c3f2d2082c34e1515cf1e6a178d9b43d1eb /src/core/url_request_context_getter_qt.cpp | |
parent | e8d4115c43665fb6e567e639fce3924082ae6450 (diff) |
Fix crash on changing persistent storage path
The deletion of HttpNetworkSession references the old
HttpServerProperties so delete the session before we replace the
properties.
Task-number: QTBUG-55322
Change-Id: I420dc0523fda44423adaa5f4f0fa1df9ade4b584
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'src/core/url_request_context_getter_qt.cpp')
-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 959dd3d95..42c8db280 100644 --- a/src/core/url_request_context_getter_qt.cpp +++ b/src/core/url_request_context_getter_qt.cpp @@ -216,6 +216,7 @@ void URLRequestContextGetterQt::generateStorage() cancelAllUrlRequests(); // we need to get rid of dangling pointer due to coming storage deletion m_urlRequestContext->set_http_transaction_factory(0); + m_httpNetworkSession.reset(); } m_storage.reset(new net::URLRequestContextStorage(m_urlRequestContext.get())); |