Skip to content

Commit c4b7afe

Browse files
committedMar 7, 2016
Fix SpatialAreaStore not freeing removed areas
1 parent 8ae1e1f commit c4b7afe

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/util/areastore.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,7 @@ bool SpatialAreaStore::removeArea(u32 id)
275275
Area *a = &itr->second;
276276
bool result = m_tree->deleteData(get_spatial_region(a->minedge,
277277
a->maxedge), id);
278+
areas_map.erase(itr);
278279
invalidateCache();
279280
return result;
280281
} else {

0 commit comments

Comments
 (0)
Please sign in to comment.