From: ShadowNinja Date: Fri, 30 Oct 2015 14:26:14 +0000 (-0400) Subject: Fix SpatialAreaStore not freeing removed areas X-Git-Tag: 0.4.14~186 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c4b7afed7ed12f8d5894c1a5dd15ea376af06da6;p=oweals%2Fminetest.git Fix SpatialAreaStore not freeing removed areas --- 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 {