summaryrefslogtreecommitdiff
path: root/platform/default
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-27 18:30:35 +0200
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2020-03-30 23:37:44 +0300
commitea19e817c07f4a5eeda939b5ec4dca9e9bb9b90e (patch)
tree0c4c5d9568f891bc8cbd011916c7f2e89f1ea18a /platform/default
parent0f235ac6d5a0e3f795c770d44cb172307d0e3123 (diff)
downloadqtlocation-mapboxgl-ea19e817c07f4a5eeda939b5ec4dca9e9bb9b90e.tar.gz
[core] Fix bugprone-exception-escape errors
As reported by clang-tidy-8.
Diffstat (limited to 'platform/default')
-rw-r--r--platform/default/src/mbgl/storage/http_file_source.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/platform/default/src/mbgl/storage/http_file_source.cpp b/platform/default/src/mbgl/storage/http_file_source.cpp
index d55d447ae7..8536990a57 100644
--- a/platform/default/src/mbgl/storage/http_file_source.cpp
+++ b/platform/default/src/mbgl/storage/http_file_source.cpp
@@ -266,7 +266,10 @@ HTTPRequest::HTTPRequest(HTTPFileSource::Impl* context_, Resource resource_, Fil
}
HTTPRequest::~HTTPRequest() {
- handleError(curl_multi_remove_handle(context->multi, handle));
+ if (curl_multi_remove_handle(context->multi, handle) != CURLM_OK) {
+ mbgl::Log::Error(mbgl::Event::HttpRequest, "Error removing curl multi handle");
+ }
+
context->returnHandle(handle);
handle = nullptr;