diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-01-27 20:44:44 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-01-28 10:52:33 +0100 |
commit | e2a3c02d1a9f280badd9c1c2a9063aa2afdac7ab (patch) | |
tree | 0bd0db15de211733a3b967d8863c74f1dd628b43 /include/mbgl/util/run_loop.hpp | |
parent | b492e2408d1ece69ea977912908ca49fe42e84b2 (diff) | |
download | qtlocation-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.hpp | 2 |
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; |