From c4b7afed7ed12f8d5894c1a5dd15ea376af06da6 Mon Sep 17 00:00:00 2001 From: ShadowNinja Date: Fri, 30 Oct 2015 10:26:14 -0400 Subject: [PATCH] Fix SpatialAreaStore not freeing removed areas --- src/util/areastore.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/areastore.cpp b/src/util/areastore.cpp index fdd4d7b79..357ce37f0 100644 --- a/src/util/areastore.cpp +++ b/src/util/areastore.cpp @@ -275,6 +275,7 @@ bool SpatialAreaStore::removeArea(u32 id) Area *a = &itr->second; bool result = m_tree->deleteData(get_spatial_region(a->minedge, a->maxedge), id); + areas_map.erase(itr); invalidateCache(); return result; } else {