From 9e675793155d7cd56bbd2222df7b45245008c647 Mon Sep 17 00:00:00 2001 From: Craig Robbins Date: Thu, 5 Mar 2015 15:17:37 +1000 Subject: [PATCH] Fix memory leak in MapgenV6 --- src/mapgen_v6.cpp | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.25.1