summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-03-23 12:18:40 +0100
committerKonstantin Käfer <mail@kkaefer.com>2015-03-23 12:18:40 +0100
commit9d30d4042c3311d02568adbb38dd13fb82faf75d (patch)
treefee77b47ffd47f89f8105c364fe0c53c939fdf38
parent84f0f6d526089d17106ca0acbd78d222eb66e725 (diff)
downloadqtlocation-mapboxgl-9d30d4042c3311d02568adbb38dd13fb82faf75d.tar.gz
delete the workers in the correct thread
fixes #1066
-rw-r--r--src/mbgl/map/map.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp
index 1473346a33..bc53d0d0fa 100644
--- a/src/mbgl/map/map.cpp
+++ b/src/mbgl/map/map.cpp
@@ -129,6 +129,7 @@ void Map::start(bool startPaused) {
// Remove all of these to make sure they are destructed in the correct thread.
style.reset();
+ workers.reset();
activeSources.clear();
terminating = true;