summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-03-03 14:58:15 +0100
committerKonstantin Käfer <mail@kkaefer.com>2014-03-03 14:58:15 +0100
commit45385d112b940c2826fa83fdce9bee5eb4f4f6a8 (patch)
tree962cbcbf66fb3742fa8a63464a911e79058be0fb /linux
parent880dc2d841af85e6651444f64ee09dcc72e85825 (diff)
downloadqtlocation-mapboxgl-45385d112b940c2826fa83fdce9bee5eb4f4f6a8.tar.gz
delete key
Diffstat (limited to 'linux')
-rw-r--r--linux/request.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/request.cpp b/linux/request.cpp
index 2c4ebd1bb1..4d760656ba 100644
--- a/linux/request.cpp
+++ b/linux/request.cpp
@@ -39,6 +39,7 @@ void Request::initialize() {
}
void Request::finish() {
+ pthread_key_delete(key);
curl_share_cleanup(curl_share);
}
@@ -51,7 +52,6 @@ Request::Request(std::string url, std::function<void(platform::Response&)> bg, s
llmr::util::threadpool->add(request, this);
}
-
pthread_key_t Request::key;
pthread_once_t Request::key_once = PTHREAD_ONCE_INIT;