diff --git a/tile-join.cpp b/tile-join.cpp index 499ba04..4bc7798 100644 --- a/tile-join.cpp +++ b/tile-join.cpp @@ -356,6 +356,8 @@ void *join_worker(void *v) { handle(ai->second[i], ai->first.z, ai->first.x, ai->first.y, *(a->layermap), *(a->header), *(a->mapping), *(a->exclude), a->ifmatched, tile); } + ai->second.clear(); + bool anything = false; for (size_t i = 0; i < tile.layers.size(); i++) { if (tile.layers[i].features.size() > 0) { @@ -393,7 +395,9 @@ void handle_tasks(std::map> &tasks, std::vector