delete the workers in the correct thread

fixes #1066
This commit is contained in:
Konstantin Käfer
2015-03-23 12:18:40 +01:00
parent 84f0f6d526
commit 9d30d4042c

View File

@@ -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;