aboutsummaryrefslogtreecommitdiff
path: root/src/util/areastore.cpp
diff options
context:
space:
mode:
authorDaroc Alden <setupminimal@users.noreply.github.com>2022-03-09 13:28:12 -0500
committerGitHub <noreply@github.com>2022-03-09 19:28:12 +0100
commit598efbf7f9d75307e7ea48ed7ec0e9b560e69375 (patch)
treebc5ab97dc97380bcdb9025af0a0b3f59d6efa515 /src/util/areastore.cpp
parentb651bbf44639b9bdd1d5ef581acb57fd47cc6b7a (diff)
downloadminetest-598efbf7f9d75307e7ea48ed7ec0e9b560e69375.tar.gz
minetest-598efbf7f9d75307e7ea48ed7ec0e9b560e69375.tar.bz2
minetest-598efbf7f9d75307e7ea48ed7ec0e9b560e69375.zip
Fix memory leak from SpatialAreaStore (#12120)
Diffstat (limited to 'src/util/areastore.cpp')
-rw-r--r--src/util/areastore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/areastore.cpp b/src/util/areastore.cpp
index 67bfef0c0..bf751476f 100644
--- a/src/util/areastore.cpp
+++ b/src/util/areastore.cpp
@@ -308,6 +308,7 @@ void SpatialAreaStore::getAreasInArea(std::vector<Area *> *result,
SpatialAreaStore::~SpatialAreaStore()
{
delete m_tree;
+ delete m_storagemanager;
}
SpatialAreaStore::SpatialAreaStore()