summaryrefslogtreecommitdiff
path: root/include/mbgl/util/run_loop.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-01-27 20:44:44 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-01-28 10:52:33 +0100
commite2a3c02d1a9f280badd9c1c2a9063aa2afdac7ab (patch)
tree0bd0db15de211733a3b967d8863c74f1dd628b43 /include/mbgl/util/run_loop.hpp
parentb492e2408d1ece69ea977912908ca49fe42e84b2 (diff)
downloadqtlocation-mapboxgl-e2a3c02d1a9f280badd9c1c2a9063aa2afdac7ab.tar.gz
[core] destruct WorkTask data before calling the callback
Diffstat (limited to 'include/mbgl/util/run_loop.hpp')
-rw-r--r--include/mbgl/util/run_loop.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/mbgl/util/run_loop.hpp b/include/mbgl/util/run_loop.hpp
index e3d9248f84..6075d76c8c 100644
--- a/include/mbgl/util/run_loop.hpp
+++ b/include/mbgl/util/run_loop.hpp
@@ -146,7 +146,7 @@ private:
private:
template <std::size_t... I>
void invoke(std::index_sequence<I...>) {
- func(std::get<I>(std::forward<P>(params))...);
+ func(std::move(std::get<I>(std::forward<P>(params)))...);
}
std::recursive_mutex mutex;