diff options
author | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-02-20 11:59:02 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@theqtcompany.com> | 2015-02-20 14:16:22 +0000 |
commit | 61dec11a8bc36d37ed36acc6ad897653735d4564 (patch) | |
tree | 2de013b04c38fd6734f744182d1e40b13521516d /src/core/url_request_custom_job.cpp | |
parent | d2b9c003f87e34ca599d3264a9af371e435ad0f8 (diff) |
Fix crashes and ownership issues in Custom URL scheme handling
Fixes crashes exposed by implementing the qthelp protocol handler for
Qt assistant.
Change-Id: I0b1153bc52ff82838cde009f1fe1ac46edc43210
Reviewed-by: Andras Becsi <andras.becsi@theqtcompany.com>
Diffstat (limited to 'src/core/url_request_custom_job.cpp')
-rw-r--r-- | src/core/url_request_custom_job.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/url_request_custom_job.cpp b/src/core/url_request_custom_job.cpp index e97804c2f..f206955f1 100644 --- a/src/core/url_request_custom_job.cpp +++ b/src/core/url_request_custom_job.cpp @@ -72,7 +72,7 @@ void URLRequestCustomJob::Start() void URLRequestCustomJob::Kill() { - if (m_device->isOpen()) + if (m_device && m_device->isOpen()) m_device->close(); m_weakFactory.InvalidateWeakPtrs(); |