summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCraig Robbins <kde.psych@gmail.com>2015-03-05 15:17:37 +1000
committerCraig Robbins <kde.psych@gmail.com>2015-03-05 15:17:37 +1000
commit9e675793155d7cd56bbd2222df7b45245008c647 (patch)
tree967beaebffa9281f65ed7fbe613e6b128a6c0a1b
parenteb7482fd73ed111d84644e3abca2b51eb22566f9 (diff)
downloadminetest-9e675793155d7cd56bbd2222df7b45245008c647.tar.gz
minetest-9e675793155d7cd56bbd2222df7b45245008c647.tar.bz2
minetest-9e675793155d7cd56bbd2222df7b45245008c647.zip
Fix memory leak in MapgenV6
-rw-r--r--src/mapgen_v6.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mapgen_v6.cpp b/src/mapgen_v6.cpp
index 4783e4285..58e6022f8 100644
--- a/src/mapgen_v6.cpp
+++ b/src/mapgen_v6.cpp
@@ -117,6 +117,8 @@ MapgenV6::~MapgenV6()
delete noise_mud;
delete noise_beach;
delete noise_biome;
+
+ delete[] heightmap;
}