From 4ba98062d60e2728a5bbbcec5a6b41fee0d1fc17 Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Tue, 20 Sep 2016 14:19:40 -0700 Subject: [PATCH] Recover memory from the pre-joined tiles after joining --- tile-join.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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